Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

fix(Connectivity): androidApp is not defined on SDK <28 #10324

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Jun 23, 2023

Conversation

rigor789
Copy link
Member

PR Checklist

What is the current behavior?

On SDK <28 the app crashes when startMonitoring is called with:

ReferenceError: androidApp is not defined

What is the new behavior?

The app no longer crashes, and calls the correct Application method to register a broadcast receiver.

Bonus: added generic type to zonedCallback to not need a @ts-ignore comment due to the wrapped function type being changed to Function.

fixes #10323

@nx-cloud
Copy link

nx-cloud bot commented Jun 23, 2023

☁️ Nx Cloud Report

Attention: This version of the Nx Cloud GitHub bot will cease to function on July 1st, 2023. An organization admin can update your integration here.

CI is running/has finished running commands for commit eaf6fb4. As they complete they will appear below. Click to see the status, the terminal output, and the build insights.

📂 See all runs for this branch


✅ Successfully ran 2 targets

Sent with 💌 from NxCloud.

@cla-bot cla-bot bot added the cla: yes label Jun 23, 2023
@NathanWalker NathanWalker merged commit fce2e88 into main Jun 23, 2023
@NathanWalker NathanWalker deleted the fix/connectivity-androidapp-undefined branch June 23, 2023 16:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

@nativescript/core 8.5.4+: ReferenceError androidApp is not defined
2 participants
Morty Proxy This is a proxified and sanitized view of the page, visit original site.