Comments (9)
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.
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.
I pod install v4.1.0, Push notfication is OK, but after version, won't display the push notfication Box.
from appboy-ios-sdk.
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.
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.
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.
Thanks @jerielng , I will cross-reference your sample app, when I finished, I will let you know.
from appboy-ios-sdk.
Has solved.
from appboy-ios-sdk.
Thanks for getting back to us. I'll close out this issue since it has been solved.
from appboy-ios-sdk.
Related Issues (20)
- [Feature]: Modal In-app message could be dismissed also by tapping on blurred background HOT 2
- Test Issue
- [Bug]: Appboy-iOS-SDK 4.4.3 + not Archiving with Bitrise HOT 3
- [Bug]: Appboy ios SDK 4.4.4 archive failed HOT 4
- [Bug]: Blank UIWindow when IAM received HOT 2
- [Feature]: Need Asynchronous callback when dispatch to server is completed HOT 6
- [Bug]: Geofence not working at all HOT 2
- [Bug]: Previews not working on Xcode 14.X HOT 6
- [Bug]: ABKUIUtils.activeWindowScene sometimes is wrong HOT 3
- [Bug]: Background Task will cause a risk of termination from [ABKService processRequest:] HOT 4
- [Bug]: Appboy 4.5.2 has been crashed when try to use method "logPurchse:" HOT 8
- [Bug]: UI unresponsiveness if invoked on the main thread HOT 3
- [Feature]: methods for handling `brazeAction` uri's HOT 1
- [Bug]: Push notification received after `Appboy.disableSDK` HOT 4
- [Feature]: HOT 2
- [Bug]: SDWebImage dependency. HOT 1
- [Bug]: ABKCustomPropertyUtils validateArray HOT 6
- [Feature]: Upgrade SDWebImage to latest HOT 6
- [Bug]: 0x1b4ea62b8 __CFBinaryPlistWriteOrPresize + 556 HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from appboy-ios-sdk.