Add handling for extra "android::action:onReceive:intentUrl" by mzoeller · Pull Request #98 · gotify/android

jmattheis

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks. See subcomments for remarks.

@Override
protected void onResume() {

Context context = getApplicationContext();

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This shouldn't be here o.O


if (intentUrl != null) {
intent = new Intent(Intent.ACTION_VIEW);
intent.setData(Uri.parse(intentUrl));

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The intent needs this flag:

intent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK);