GithubHelp home page GithubHelp logo

Comments (9)

jerielng avatar jerielng commented on July 16, 2024

Hi @yangyang-wen, could you provide some additional details on which iOS versions your app supports as well as how you are requesting the push permissions? To note, there are some distinctions in our integration docs around iOS 10+ and pre-iOS 10 push registration. Could you verify if your implementation matches those steps accordingly?

from appboy-ios-sdk.

yangyang-wen avatar yangyang-wen commented on July 16, 2024

Hey @jerielng , our app supports iOS14-iOS16.
we request push permissions use this.

let center = UNUserNotificationCenter.current()
  let options: UNAuthorizationOptions = [.alert, .sound, .badge]
   center.requestAuthorization(options: options) { granted, _ in
     Appboy.sharedInstance()?.pushAuthorization(fromUserNotificationCenter: granted)
   }

from appboy-ios-sdk.

yangyang-wen avatar yangyang-wen commented on July 16, 2024

I pod install v4.1.0, Push notfication is OK, but after version, won't display the push notfication Box.

from appboy-ios-sdk.

jerielng avatar jerielng commented on July 16, 2024

Hey @yangyang-wen, I'm having difficulty reproducing this issue from our end. Are you able to step through the authorization request process and noticing where in your code it might be failing/not being triggered? Is there also anything else you can share about how you are implementing the notification handlers in your app that might help shed light on the issue?

from appboy-ios-sdk.

yangyang-wen avatar yangyang-wen commented on July 16, 2024

My registration logic is the same as 4.1.0, the difference is that when I install pod 'Appboy-iOS-SDK '4.5.4 when I install for the first time, I will not play the push message box. When I switch to pod 'Appboy-iOS-SDK '4.1.0, this message pops up.
The specific screen recording is as follows:

4.5.4 There is no push box

Screen.Recording.2023-07-18.at.11.59.59.mov

4.1.0 There has a push box

Screen.Recording.2023-07-18.at.11.56.17.mov

from appboy-ios-sdk.

jerielng avatar jerielng commented on July 16, 2024

Hi @yangyang-wen, as a minimal reproducible scenario, that method call center.requestAuthorization should be all you need to display the push permissions dialog box. For context, the display of this prompt is managed by the iOS UserNotifications framework, and an upgrade to the Braze SDK shouldn't have consequences for this display. The Braze logic (Appboy.sharedInstance()?.pushAuthorization(fromUserNotificationCenter: granted)) is only executed after the push permissions have been accepted.

For a sanity check, can you cross-reference our sample app, which has a working example?

Additionally, we would recommend setting a breakpoint in your push registration code to determine where it's getting stopped and why it may not be getting triggered.

If the above doesn't work, could you write in to our support team at [email protected] with further details on this case and a link to this GitHub issue for context?

from appboy-ios-sdk.

yangyang-wen avatar yangyang-wen commented on July 16, 2024

Thanks @jerielng , I will cross-reference your sample app, when I finished, I will let you know.

from appboy-ios-sdk.

yangyang-wen avatar yangyang-wen commented on July 16, 2024

Has solved.

from appboy-ios-sdk.

hokstuff avatar hokstuff commented on July 16, 2024

Thanks for getting back to us. I'll close out this issue since it has been solved.

from appboy-ios-sdk.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.