You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I followed all the instructions mentioned in the documentation for the React-Native project, opened a new empty project, tried again, but when trying to create a link on the react-native side, android.content.Context.getApplicationContext() gives a non a null object reference error.
I sent a ticket to the support team, no response
Steps to reproduce
Create new react-native Android project
Branch.io integration according to docs
Make branch.createBranchUniversalObject and call generateShortUrl with generated universal object
Expected behavior
The same code works fine on iOS, my expectation is that the link will be created in the same way on Android
SDK Version
5.15.1
Make and Model
Android Pixel 9 Pro Emulator or Realme 12 Pro real device or any Android real device
overridefunonCreate() {
super.onCreate()
// Branch logging for debuggingBranch.enableLogging()
// I added this line to try, but it doesn't work with or without it// Branch.expectDelayedSessionInitialization(false)// Branch object initializationBranch.getAutoInstance(this.applicationContext)
SoLoader.init(this, false)
if (BuildConfig.IS_NEW_ARCHITECTURE_ENABLED) {
// If you opted-in for the New Architecture, we load the native entry point for this app.
load()
}
}
branch.json File:
{
"deferInitForPluginRuntime": true
}
Note: the result does not change whether the branch.json file is present or not
The text was updated successfully, but these errors were encountered:
Describe the bug
I followed all the instructions mentioned in the documentation for the React-Native project, opened a new empty project, tried again, but when trying to create a link on the react-native side, android.content.Context.getApplicationContext() gives a non a null object reference error.
I sent a ticket to the support team, no response
Steps to reproduce
Expected behavior
The same code works fine on iOS, my expectation is that the link will be created in the same way on Android
SDK Version
5.15.1
Make and Model
Android Pixel 9 Pro Emulator or Realme 12 Pro real device or any Android real device
OS
15
Additional Information/Context
MainActivity.kt File:
MainApplication.kt File:
branch.json File:
Note: the result does not change whether the branch.json file is present or not
The text was updated successfully, but these errors were encountered: