Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Confirmed Deliveries not works in iOS version. #593

Closed
jmcuartas opened this issue Dec 16, 2019 · 8 comments
Closed

Confirmed Deliveries not works in iOS version. #593

jmcuartas opened this issue Dec 16, 2019 · 8 comments

Comments

@jmcuartas
Copy link

Description:

A few days ago, I update the lasted version of OneSignal-Cordova-SDK (2.8.0).

I followed all steps to use this feature in one project, ionic 3 with Cordova, I added iOS Notification Service Extension and rich notification works fine, but, when I send a notification for iOS devices confirmes deliveries it’s empty, but in android I receive all of them.

Environment

Ionic:

  • Ionic CLI : 5.4.12
  • Ionic Framework : ionic-angular 3.9.6
  • @ionic/app-scripts : 3.2.1

Cordova:

  • Cordova CLI : 9.0.0 ([email protected])
  • Cordova Platforms : android 8.1.0, browser 6.0.0, ios 5.1.1
  • Cordova Plugins : cordova-plugin-ionic-keyboard 2.2.0, cordova-plugin-ionic-webview 1.2.1, (and 26 other plugins)

System:

  • Android SDK Tools : 26.1.1
  • ios-deploy : 1.9.4
  • ios-sim : 8.0.2
  • NodeJS : v10.16.3
  • npm : 6.13.1
  • OS : macOS Catalina
  • Xcode : Xcode 11.3 Build version 11C29

Steps to Reproduce Issue:

  1. Add the last version of onesignal-cordova-plugin to your project
  2. Initialize the plugin with your app ID
  3. Follow this guide: https://documentation.onesignal.com/docs/ios-sdk-setup#section-1-add-notification-service-extension-recommend-
  4. Attempt to receive a push notification

Anything else:

(crash stacktraces, as well as any other information here)

// DEBUGGING: Uncomment the 2 lines below and comment out the one above to ensure this extension is excuting // Note, this extension only runs when mutable-content is set // Setting an attachment or action buttons automatically adds this // NSLog(@"Running NotificationServiceExtension"); // self.bestAttemptContent.body = [@"[Modified] " stringByAppendingString:self.bestAttemptContent.body];

I've uncomment these two lines to verify that the extension works and it does.

Thanks for your help.

@canado
Copy link

canado commented Dec 19, 2019

Hi,

Can you go on onesignal website, check the ios device in the list of users.
Do you see any messages APNS delegate never fired?

@mikechoch
Copy link
Contributor

mikechoch commented Jan 17, 2020

iOS native SDK release 2.12.5 fixes this problem and will be included in Cordova SDK release 2.8.2

@rgomezp rgomezp closed this as completed Jan 28, 2020
@canado
Copy link

canado commented Jan 30, 2020

I still have this error

Error - Plugin error (you probably need to remove plugin files from your app): Fetching plugin "[email protected]" via npm Installing "onesignal-cordova-plugin" at "2.8.2" for ios "framework" tag with type "podspec" is deprecated and will be removed. Please use the "podspec" tag. Running command: pod install --verbose Failed to install 'onesignal-cordova-plugin': Error: pod: Command failed with exit code 1 at ChildProcess.whenDone (/private/tmp/gimlet/70310481600160/2744459/project/cordova/node_modules/cordova-common/src/superspawn.js:135:23) at ChildProcess.emit (events.js:182:13) at maybeClose (internal/child_process.js:962:16) at Socket.stream.socket.on (internal/child_process.js:381:11) at Socket.emit (events.js:182:13) at Pipe._handle.close (net.js:611:12) pod: Command failed with exit code 1

@rricamar
Copy link

rricamar commented Feb 4, 2020

Hi, Im @jmcuartas workmate:

Im reaching you through this issue because I try out the v2.8.2 and the confirmed deliveries feat is not working. We read that the notification service extension step is needed, but even if I do the #455 (comment) step is not working 😭 , Im going to send some images:

1. Apple developer capabilities enabled (both app id, extension app id):

Captura de pantalla 2020-02-04 a las 12 00 08

Captura de pantalla 2020-02-04 a las 12 00 21

2. Xcode config:

Captura de pantalla 2020-02-04 a las 11 50 13

Captura de pantalla 2020-02-04 a las 11 50 20

Captura de pantalla 2020-02-04 a las 11 50 33

Captura de pantalla 2020-02-04 a las 11 50 45

Captura de pantalla 2020-02-04 a las 11 49 14

2020-02-04 12 26 41

As you can the notification is on my mobile phone but Admin confirmed is 0... 😭

I think that the steps are good since the notification arrives with an associated image and no errors are given... any help?

Ty in advance 👍

@jmcuartas
Copy link
Author

Hi!
I made a new build with all the steps in dev environment with automatic signing in Xcode and it’s works, but when we used a provisioning profile to sign the app in pre and pro environment, not works.
I don’t know if it’s needed a some configuration when it’s used a automatic signing.

Can you tried to sign the app with provisioning profile to see which step or configuration it’s needed @mikechoch ?

Thx.

@rgomezp rgomezp reopened this Feb 4, 2020
@rricamar
Copy link

rricamar commented Feb 6, 2020

Hi again, I finally figured out what was happening, the key was on this:
#455 (comment)

My production entitlements .plist was not updating with the desired app group, after set it, it started working:

Captura de pantalla 2020-02-06 a las 9 10 26

@canado
Copy link

canado commented Feb 7, 2020

any updates for phonegap build ? thanks

@rgomezp
Copy link
Contributor

rgomezp commented Feb 10, 2020

@canado ,
If you are talking about PGB, see this issue: #468

@rgomezp rgomezp closed this as completed Feb 10, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

6 participants