@dweedlez wrote:
I do not know what else to do … I exclude I have created new vi tutorials, I have documentation, and no results so far … I really need help, who can at least look at my code to find out what’s wrong … I needed it a lot use this
App.componet.ts
platform.ready().then(() => { statusBar.styleDefault(); splashScreen.hide(); alert('TESTE1'); this.push.hasPermission() .then((res: any) => { if (res.isEnabled) { alert('We have permission to send push notifications'); } else { alert('We do not have permission to send push notifications'); const options: PushOptions = { android: {}, ios: { alert: 'true', badge: true, sound: 'false' }, windows: {}, browser: { pushServiceURL: 'http://push.api.phonegap.com/v1/push' } }; const pushObject: PushObject = this.push.init(options); pushObject.on('notification').subscribe((notification: any) => { alert(notification.message); }); pushObject.on('registration').subscribe((registration: any) =>{ alert( registration); }); pushObject.on('error').subscribe(error =>{ alert(error);CONFIG.XML
<platform name="ios"> <resource-file src="GoogleService-Info.plist" /> </platform> <plugin name="phonegap-plugin-push" spec="^2.2.3"> <variable name="SENDER_ID" value="931157632289" /> </plugin>IMAGE 1:Image of my APNS certificate https://imgur.com/8vxIpxc
IMAGE 2: Cloud Messaging Firebase https://imgur.com/wVJao9e
IMAGE 3: Screenshot of my smartphone https://imgur.com/a/V7EDBjY
Posts: 1
Participants: 1