Closed donny08 closed 4 years ago
Your repo looks pretty good. One thing I'd suggest is moving those addOnPushTokenReceivedCallback
and addOnMessageReceivedCallback
inside the init
function because those will now run before init
has completed. There are properties for those in the init
method where you can add these.
Three further questions:
@EddyVerbruggen Do you receive the push token? Yes, I am receiving Did you try sending a notification with the CURL command in the readme? (if not, please do), No Are you testing this on a real device (iOS sim doesn't support push notifications), Yes via Wifi
@EddyVerbruggen
I tried curl command I am receiving below error:
{"multicast_id":6785295490326455016,"success":0,"failure":1,"canonical_ids":0,"results":[{"error":"InvalidApnsCredential"}]}
That's a problem with your APNs certificate then. Has nothing to do with the client side.
@EddyVerbruggen Now it is showing notification only if i trigger from firbase console. If i trigger from curl i m getting same error
Working fine !!!. Thanks
Hi @EddyVerbruggen I'm unable to receive the notification on IOS, its working fine on android. I followed the steps on both the firebase console and on the plugin github page.
I'm using "nativescript-plugin-firebase": "^8.3.2" version.
Here is my app.components.ts file: `import { Component, OnInit } from "@angular/core"; const firebase = require("nativescript-plugin-firebase");
@Component({ selector: "ns-app", moduleId: module.id, templateUrl: "./app.component.html" }) export class AppComponent implements OnInit {
}` Please find repo: https://github.com/donny08/flow-firebase.git