Created
July 11, 2016 18:32
-
-
Save ricardokdz/428a7f522a313770193f45e9104e2c85 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// main.js | |
function onDeviceReady () { | |
require('./components') | |
checkConnection() | |
checkLocationStatus() | |
const push = PushNotification.init({ | |
android: { | |
senderID: '1037852817999' | |
}, | |
ios: { | |
senderID: '1037852817999', | |
alert: true, | |
badge: true, | |
sound: true, | |
gcmSandbox: true, | |
} | |
}) | |
} | |
document.addEventListener('deviceready', onDeviceReady, false) | |
// whatever.js | |
push.on('notification', function(data) { | |
console.log(data.additionalData) | |
}); | |
push está disponível? |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment