When an invalid API_KEY is provided to adapty.activate(API_KEY) function, it doesn't throw an error and the whole app crashes.
When the correct api key is provided, it works without any issues. (Please check the video)
Expected Behaviour:.activate function throws an error, and it's caught by my code in the app
Actual Behaviour: No error is thrown, instead whole app crashes. Possibly due to unhandled exception in the sdk
Why it's critical?: For any reason, app might not get the correct credentials for adapty, which would cause whole app to crash and make it unusable
Description
When an invalid
API_KEY
is provided toadapty.activate(API_KEY)
function, it doesn't throw an error and the whole app crashes. When the correct api key is provided, it works without any issues. (Please check the video)Expected Behaviour:
.activate
function throws an error, and it's caught by my code in the app Actual Behaviour: No error is thrown, instead whole app crashes. Possibly due to unhandled exception in the sdk Why it's critical?: For any reason, app might not get the correct credentials for adapty, which would cause whole app to crash and make it unusablehttps://github.com/adaptyteam/AdaptySDK-React-Native/assets/22727931/760ff2bd-8b8f-4e9f-aaca-c02eaeb80452
This hook is in the main entry point of the application, App.ts:
Version
v2.9.1
What platforms are you seeing the problem on?
iOS
System info