derek82511 / cordova-azure-notification-hubs

Register and receive push notifications via Azure Notification Hub.
MIT License
10 stars 30 forks source link

failed register device IOS #17

Closed AmrAbdalrahman closed 4 years ago

AmrAbdalrahman commented 4 years ago

I'm using ionic 3 with cordova 8 and cordova-ios is 4.5.5.

I made the configuration for APNS for the desired azure notification hub successfully. I install this plugin and build ios when run and wait to register the device get DVPlugin class PushPlugin (pluginName: PushNotification) does not exist. 2020-03-03 11:02:18.239837+0200[1072:440958] ERROR: Plugin 'PushNotification' not found, or is not a CDVPlugin. Check your plugin mapping in config.xml. 2020-03-03 11:02:18.240003+0200 [1072:440958] FAILED pluginJSON = ["PushNotification through the log and i can't register the device.

also, I tried to add phonegap-plugin-push while build for running the device get that error

build/Objects-normal/arm64/PushPlugin-2aa0a1bb0f3cf33ed22dd3af7208c4168ae91eb96219046c607fe54e2e8137b8.o ld: 12 duplicate symbols for architecture arm64 clang: error: linker command failed with exit code 1 (use -v to see invocation) so I can't run on the device .

AmrAbdalrahman commented 4 years ago

solved by I was used 1.0.6 version downgrade to 1.0. 5 version and remove phonegap-plugin-push plugin build and register successfully but when I try to send test notification don't receive any notification!

AmrAbdalrahman commented 4 years ago

now I can receive notification after :

1- add the right pushchannel property that refers to Certificate Thumbprint from APNS to register device identifier. 2- test in production mode because the certificate and provisioning refer to production mode.