Implementation
In this page let's dive deeper into how passes are handled in your React Native Android app. In order for our library to be able to open passes distribute via a push notification, a link in an email or in a website you need to declare an activity like the one below in your /android/app/src/main/AndroidManifest.xml:
<activity
android:name="re.notifica.ui.PassbookActivity"
android:configChanges="keyboardHidden|orientation|screenSize"
android:hardwareAccelerated="true">
<intent-filter>
<action android:name="android.intent.action.VIEW" />
<category android:name="android.intent.category.DEFAULT" />
<category android:name="android.intent.category.BROWSABLE" />
<data
android:host="push.notifica.re"
android:pathPrefix="/pass/forapplication/{NOTIFICARE_APP_ID}"
android:scheme="https" />
</intent-filter>
</activity>
And replace {NOTIFICARE_APP_ID} with the application id you can find in the Dashboard under Settings > Configure App. This will be the only thing need to use our default UI to handle passes.