Giter Site home page Giter Site logo

rssreader's People

Contributors

pap5508 avatar

Watchers

 avatar

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 photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.