generateShortUrl

SDK 43 Managed

https://github.com/expo/expo/issues/15443

I’m not sure if this is a bug in the new version or if it’s something on my end.

I have the SDK 43 installed along with branch expo-branch 5.0.3, however if I uninstall my app and manually install the new APK for the SDK 43 version,

On every Android phone, the app crashes on generateShortUrl with:

Caused by: com.facebook.react.common.JavascriptException: Attempt to invoke virtual method 'android.content.Context android.content.Context.getApplicationContext()' on a null object reference

Has anyone else ran into this. Here is my app.json:

{
  "expo": {
    "scheme": "highlife",
    "slug": "highlife",
    "name": "Highlife",
    "version": "4.0",
    "android": {
      "versionCode": 32,
      "config": {
        "branch": {
          "apiKey": "<apikey>>"
        }
      },
      "intentFilters": [
        {
          "action": "VIEW",
          "data": [
            {
              "scheme": "highlife",
            }
          ],
          "category": [
            "BROWSABLE",
            "DEFAULT"
          ]
        }
      ]
    }
  }
}

@adamjnav if you have any ideas of what I can check, would love to hear it.

I’m simply just trying to get basic Branch functionality working on Android after my upgrade to SDK 43 Managed.

I triple checked everything here:

https://docs.expo.dev/versions/latest/sdk/branch/#configuration

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.