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

"Apns Delegate Never Fired" status when OneSignal in the abstract_target in a Podfile #180

Closed
jkasten2 opened this issue Feb 9, 2017 · 7 comments

Comments

@jkasten2
Copy link
Member

jkasten2 commented Feb 9, 2017

Edit

Issue was not related to abstract_target, it was related to a bug in the OneSignal-iOS-SDK 2.5.0 and was fixed in 2.5.1.
#180 (comment)

Issue

Devices will have a "Apns Delegate Never Fired" status on the All Users page on the OneSignal dashboard when OneSignal is in the abstract_target in a Podfile. They may only happen when it also contains library project that gets embed into the app.

abstract_target 'AppNameApp' do
  use_frameworks!
  # some pods

  pod 'OneSignal', '~> 2.3.5'

  # more pods

  # This is the target for building the actual app
  target 'AppName' do
  end

  target 'AppNameTests' do
  end

  # AppNameLibrary is a framework we build and embed into the AppName app
  target 'AppNameLibrary' do
  end
end

Changing the Podspec like this fixes the issue.

abstract_target 'AppNameApp' do
  use_frameworks!

  # fewer pod definitions
  
  target 'AppName' do
    # more pod definitions
    pod 'OneSignal', '~> 2.3.5'
  end

  target 'AppNameTests' do
  end

  # AppNameLibrary is a framework we build and embed into the AppName app
  target 'AppNameLibrary' do
  end
end
@PaulRBerg
Copy link

+1

This happens for me without the abstract_target thing. Using the 2.3.5 version.

@PaulRBerg
Copy link

Switched back to 2.1.6 and everything works again.

@jkasten2
Copy link
Member Author

@RazvanPaul Could you share your Podfile reproducing the issue? Or a xcode project reproducing the issue? We should be able to find a fix once we are able to reproduce the issue. The above was from a client but we haven't been able reproduced it our selves yet.

Thanks.

@jkasten2
Copy link
Member Author

jkasten2 commented Mar 1, 2017

@RazvanPaul Fixed a "Apns Delegate Never Fired" error when "Background modes" > "remote notifications" were disabled and the user declined notifications. Can you check this in your project?

This was fixed in commit 9f51c12 and will be included in the next release.

Additionally, the a 3rd possible way the "Apns Delegate Never Fired" status could be set is if there is another conflicting notification plugin.

@jkasten2
Copy link
Member Author

jkasten2 commented Mar 14, 2017

@RazvanPaul The commit noted above was released in 2.3.6. Can you try our latest 2.4.2 SDK to see if you still have this issue?

@jkasten2
Copy link
Member Author

jkasten2 commented Apr 4, 2017

@RazvanPaul I have made a number of changes in our 2.5.0 SDK around handling the current subscribed state and added a number of unit tests to ensure we are not reporting an inaccurate subscription state.

Let us know if you continue to see an issue after updating to the 2.5.1 SDK.

Thanks.

@MilotH2
Copy link

MilotH2 commented Sep 29, 2021

I am using Ionic with Capacitor on the latest versions, I had configured wrongly the steps, I did everything from beginning but slowly and reading everything as the documentation was saying. Now it is working.

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

3 participants