# Push Notification with FireBase on Android

**URL:** <https://forums.fusetools.com/t/push-notification-with-firebase-on-android/7081>\
**Category:** How-to Discussions\
**Created:** [April 23, 2018, 10:24am UTC](https://forums.fusetools.com/t/push-notification-with-firebase-on-android/7081 "2018-04-23T10:24:17Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Alex93Raffica](https://avatars.discourse-cdn.com/v4/letter/a/7cd45c/32.png) [@Alex93Raffica](https://forums.fusetools.com/u/Alex93Raffica)\
**Post date:** [April 23, 2018, 10:24am UTC](https://forums.fusetools.com/t/push-notification-with-firebase-on-android/7081/1 "2018-04-23T10:24:17Z")

</div>

Hi guys. i’m trying to develop an app with push notification support…  
the my goal is set and create a notification on firebase console that can arrive at all my app users… i’ve seen a lot of things in fuse forum, but i’m really confused and i don’t know how can i do…

someone can help me?

the only things that i do:  
MAINVIEW.ux

```
<App Background="Black">

<JavaScript>
var API_ACCESS_KEY = '2099...639';
var regID = '----HARDCODED REG ID FROM THE APP YOU ARE SENDING TO----';

module.exports.send = function() {
    fetch('https://android.googleapis.com/gcm/send', {
        method: 'post',
        headers: {
            'Authorization': 'key=' + API_ACCESS_KEY,
            'Content-Type': 'application/json'
        },
        body: JSON.stringify({
            registration_ids: [regID],
            data: {
                notification: {
                    alert: {
                        title: 'Well would ya look at that!',
                        body: 'Hello from some other app'
                    }
                },
                payload: 'anything you like'
            }
        })
    }).then(function(response) {
        console.log(JSON.stringify(response));
    }, function(error) {
        console.log(error);
    });
} </JavaScript>

<ClientPanel>...

```

.unoproj file:

```
{

```

“RootNamespace”:"",  
“Packages”: [  
“Fuse”,  
“FuseJS”,  
“Uno.Permissions”,  
“Fuse.PushNotifications”  
],  
“Mobile”: {  
“Orientations”: “Portrait”  
},  
“Includes”: [  
“_",  
"Modules/_.js:Bundle”,  
“Javascript/\*\*.js:Bundle”,  
],

“Android”: {  
“Package”: “com.apps.radiojay”,  
“GooglePlay”: {  
“SenderID”: “\<2099…6639\>”  
},  
},

“Firebase”: {  
“GoogleServices”: {  
“Android”: “google-services.json”  
},  
},

“Projects”: [  
“src/Fuse.StreamingPlayer.unoproj”,  
]

}

---

<div class="post-metadata">

**Author:** ![Uldis](https://yyz1.discourse-cdn.com/flex035/user_avatar/forums.fusetools.com/uldis/32/657_2.png) [@Uldis](https://forums.fusetools.com/u/Uldis)\
**Post date:** [April 23, 2018, 1:02pm UTC](https://forums.fusetools.com/t/push-notification-with-firebase-on-android/7081/2 "2018-04-23T13:02:55Z")

</div>

You will want to carefully follow [this example](https://github.com/fuse-compound/FuseExample_Using_APNS_and_Firebase_Together) to set up push notifications for your app. Note that you still need to use both Firebase and APNS if you’re targeting both iOS and Android.
