rssreader's People
rssreader's Issues
Issue Push notification parse
{"to":"eNWnDHgrAJs:APA91bGSE6DEv3lRWTfhrfTARb0CS4uoYAJY4bhY_DeKJYDjlpDGXdVjXvRU3vFP_GIbe8gMJ8BernJh9XMpGPzaX8lOT4JsJlWj7i1XXW5nDWj4XnH79l-aBgPTvbmnpHHpZFbyvs5c","notification":{"body":"Sie haben neue Nachrichten.","title":"Message-Service"},"userfrom":{"UserID":6,"Nr":"2","Name":"Test","Type":1,"PrincipalId":0,"Principal":null},"groupfrom":{"Id":6,"GroupTypeId":2,"GroupType":{"Id":2,"Name":"Privat"},"Name":"G1","Description":"G1","Date":"/Date(1489736615910)/","EditorId":6,"Editor":{"UserID":6,"Nr":"2","Name":"Test","Type":1,"PrincipalId":0,"Principal":{"Id":0,"ClientId":0,"Client":{"Id":0,"CustomerId":0,"Customer":{"Id":0,"Name":"System","CustomerFilter":0},"Name":"System"},"Name":"System"}},"Deleted":0}}
// Initialize the firebase
firebase.init({
// Optionally pass in properties for database, authentication and cloud messaging,
// see their respective docs.
onPushTokenReceivedCallback: function(deviceID) {
setString("deviceID",deviceID);
console.log("Device ID : ",deviceID);
},
onMessageReceivedCallback: function(message) {
console.log("Title: " + message.title);
console.log("Body: " + message.body);
var test = message.data;
console.log(JSON.stringify(test) + "messageData");
if(message.foreground == false){
let navigationExtras : NavigationExtras = {
queryParams:{
"OtherName": "Pap",
"chatUserId": 1
// "groupName": "test",
// "chatGroupId": 1090
}
}
that.router.navigate(["/tc-chat"],navigationExtras);
}
// if your server passed a custom property called 'foo', then do this:
}
})
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. ๐๐๐
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google โค๏ธ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.