Skip to content

fix(android): use reactApplicationContext.currentActivity in stepUp and openAdminPortal#83

Merged
dianaKhortiuk-frontegg merged 1 commit into
masterfrom
fix/android-currentactivity-stepup-adminportal
Jun 30, 2026
Merged

fix(android): use reactApplicationContext.currentActivity in stepUp and openAdminPortal#83
dianaKhortiuk-frontegg merged 1 commit into
masterfrom
fix/android-currentactivity-stepup-adminportal

Conversation

@dianaKhortiuk-frontegg

Copy link
Copy Markdown
Collaborator

PR #75 ("added uses of reactApplicationContext for activities") migrated the native module's activity lookups from the bare currentActivity to reactApplicationContext.currentActivity, but stepUp and openAdminPortal — added afterward in #73 and #78 — were missed and still used the bare reference, which fails to compile in consumer apps (reported on v1.2.17):

e: FronteggRNModule.kt:172:20 Unresolved reference 'currentActivity'
e: FronteggRNModule.kt:222:20 Unresolved reference 'currentActivity'

This aligns both call sites with the other four (login, directLoginAction, loginWithPasskeys, registerPasskeys), which already use reactApplicationContext.currentActivity and compile fine.

Needs a patch release (1.2.18) so the customer can pick it up.

@dianaKhortiuk-frontegg
dianaKhortiuk-frontegg force-pushed the fix/android-currentactivity-stepup-adminportal branch from 3c4e0f1 to 45b6898 Compare June 30, 2026 16:38
@dianaKhortiuk-frontegg
dianaKhortiuk-frontegg merged commit afb7890 into master Jun 30, 2026
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants