Obsolete
Status Update
Comments
lu...@gmail.com <lu...@gmail.com> #2
And the new found is Opera, Firefox can work properly, is this a Chrome issue?
hb...@gmail.com <hb...@gmail.com> #3
If you can't reproduce with other browser apps, please raise this to http://crbug.com
br...@gmail.com <br...@gmail.com> #4
I have encountered with this problem too. And the Samsung phone default browser with the name of "com.sec.android.app.sbrowser" has the same problems, probably because it is based on chromium.
sa...@google.com <sa...@google.com> #5
Thank you for your feedback. We assure you that we are doing our best to address the issue reported, however our product team has shifted work priority that doesn't include this issue. For now, we will be closing the issue as won't fix obsolete. If this issue currently still exists, we request that you log a new issue along with latest bug report here https://goo.gl/TbMiIO .
Description
- Steps to reproduce the problem (including sample code if appropriate):
I have a very simple app. It sends out a notification on launching. When notification is clicked, the Browser need launch to load the URL. Here's the code:
package com.example.luxiliu.myapplication;
import android.app.NotificationManager;
import android.app.PendingIntent;
import android.content.Intent;
import android.net.Uri;
import android.os.Bundle;
import android.support.v4.app.NotificationCompat;
import android.support.v7.app.AppCompatActivity;
import android.widget.RemoteViews;
public class MainActivity extends AppCompatActivity {
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_main);
Intent intent = new Intent(Intent.ACTION_VIEW);
intent.setData(Uri.parse("
PendingIntent pendingIntent = PendingIntent.getActivity(this, 0x00, intent, PendingIntent.FLAG_UPDATE_CURRENT);
NotificationCompat.Builder builder = new NotificationCompat.Builder(this);
builder.setSmallIcon(R.mipmap.ic_launcher);
builder.setCustomContentView(new RemoteViews(getPackageName(), R.layout.view_notification));
builder.setContentIntent(pendingIntent);
NotificationManager notificationManager = (NotificationManager) getSystemService(NOTIFICATION_SERVICE);
notificationManager.notify(0x00, builder.build());
}
}
- What happened:
It works fine if notification clicking is from top notification bar, but it doesn't work if notification is clicked on lock-screen.
- What you think the correct behavior should be:
The browser should be launched. I don't know what's wrong with this implementation. I can see ActivityManager delivers the intent, and Browser (Chrome) does receive it. But it just doesn't launch.
It's found on any 21+ devices (Nexus 5, 5X, 6P)
Thanks,