Skip to content
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

add NewTask flag to avoid crash #23

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

rgajadin
Copy link

@rgajadin rgajadin commented Mar 9, 2020

Fixes the following error: 'Calling startActivity() from outside of an Activity context requires the FLAG_ACTIVITY_NEW_TASK flag. Is this really what you want?'

Saw this happen on a simulator that did not have the PlayStore installed. Probably something that will not happen on real devices but you never know.

@edsnider
Copy link
Owner

edsnider commented Mar 9, 2020

Thank you for the PR! Was there a specific version of Android this happened on? When I used the plugin on an emulator without the Play Store or Google services installed it just opened the app in the browser.

@Kapusch
Copy link

Kapusch commented Dec 25, 2020

Hello @edsnider , I've just run your plugin on Android emulator and I've encountered the same issue described by DarkSpikeX.

Answer to your question : Android11 was running (API 30).

@jakubjenis
Copy link

Same thing for me, Emulator Antroid 11 API (31). Crashing with the same exception.

@HavenDV
Copy link

HavenDV commented Feb 19, 2024

We were inspired by this library and made a continuation for MAUI, maybe it will be useful to someone - https://github.com/oscoreio/Maui.AppStoreInfo
This also includes your PR

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.

6 participants