Skip to content

Commit f06fdd1

Browse files
Fix: getBundleIdentifier Implementation (#1194)
1 parent e9dc10e commit f06fdd1

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

android/src/main/java/com/auth0/react/A0Auth0Module.java

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -85,8 +85,9 @@ public A0Auth0Module(ReactApplicationContext reactContext) {
8585
}
8686

8787
@ReactMethod
88-
public String getBundleIdentifier() {
89-
return reactContext.getApplicationInfo().packageName;
88+
public void getBundleIdentifier(Promise promise) {
89+
String packageName = reactContext.getApplicationInfo().packageName;
90+
promise.resolve(packageName);
9091
}
9192

9293
@ReactMethod

0 commit comments

Comments
 (0)