Comments (8)
Looks related to my earlier report involving OneSignalUserDefaults: #1365. Is there any progress at all on reproducing and fixing these?
from onesignal-ios-sdk.
Hi @jakubpetrik thank you for reporting. I am not sure that this crash is due to OneSignal.
I see from the stack trace that the application is losing focus with willResignActive
, causing OneSignal to save session time to NSUserDefaults
.
The last call from OneSignal is this line which just calls NSUserDefaults
method setDouble:forKey:
, which I believe posts a notification to NSNotificationCenter
.
20 OneSignalCore 0x10d48 -[OneSignalUserDefaults saveDoubleForKey:withValue:] + 72
I did some digging online and came across this post that looks related.
The poster followed up with their root cause.
The root cause of this was that a ViewController that was dismissed by the time the application went into the background was still registered as an Observer of NSUserDefaults and when the app saved state that class was called and -> CRASH!
Do you have any components that are observing User Defaults?
from onesignal-ios-sdk.
Related Issues (20)
- Handle tap on push notification HOT 2
- [Bug]: Is NOT allowed to set HSTS for main doc HOT 3
- [question]: How to disable push notification request (ios) HOT 1
- [Bug]: OneSignalUserDefaults Crash HOT 6
- [Bug]: OneSignalCore NSKeyedArchiver Crash HOT 3
- [Bug]: [OneSignalRequest urlRequest] Crash HOT 4
- [Bug]: OneSignalOSCore __swift_instantiateConcreteTypeFromMangledName Crash HOT 6
- [Bug]: [OneSignal startNewSessionInternal] Crash HOT 9
- [Bug]: Asset validation failed (50) The app references non-public selectors in Payload/Runner.app/Frameworks/OneSignalFramework.framework/OneSignalFramework: setSharedInstance HOT 5
- [Bug]: Xcode 15.3: Failed to build module 'OneSignalFramework'; this SDK is not supported by the compiler HOT 5
- iOS17 privacy policy HOT 1
- [Bug]: Thread Performance Checker warning on OneSignal.initialize HOT 2
- [question]: 3.12.8 release with privacy manifest HOT 2
- [question]: Release 3.12.8 doesn't contain privacy manifests. HOT 6
- [question]: Apns Bad Device Token HOT 5
- [question]: Privacy Manifest : Userdefaults and Timestamps HOT 17
- [Bug]: [OneSignalAttachmentHandler trimURLSpacing:] crash HOT 4
- [Bug]: Using 2 push SDKs crashed at [OneSignalNotificationsUNUserNotificationCenter onesignalRequestAuthorizationWithOptions:completionHandler:] HOT 2
- Migration
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 onesignal-ios-sdk.