{ "id": "170631", "key": "AC-5455", "fields": { "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false }, "project": { "id": "12217", "key": "AC", "name": "Appcelerator - INBOX", "projectCategory": { "id": "10000", "description": "", "name": "Customer Service" } }, "resolution": { "id": "10000", "description": "", "name": "Done" }, "resolutiondate": "2017-12-15T21:56:29.000+0000", "created": "2017-12-15T09:03:03.000+0000", "labels": [], "versions": [], "issuelinks": [], "assignee": { "name": "shossain", "key": "shossain", "displayName": "Shak Hossain", "active": false, "timeZone": "America/Los_Angeles" }, "updated": "2017-12-15T21:56:29.000+0000", "status": { "description": "A resolution has been taken, and it is awaiting verification by reporter. From here issues are either reopened, or are closed.", "name": "Resolved", "id": "5", "statusCategory": { "id": 3, "key": "done", "colorName": "green", "name": "Done" } }, "components": [], "description": "Hi guys,\r\nI'm facing a problem(on Android 6.0.1).\r\nLet's say I have app with id=com.example.exampleApp and when starting activity is .ExampleappActivity.\r\nI implemented local notifications, notification will show up, but when I click on in, I get this error:\r\n\r\n{code:java}\r\nTiLaunchActivity: (main) [14972,34290] Android issue 2373 detected (missing intent CATEGORY_LAUNCHER or FLAG_ACTIVITY_RESET_TASK_IF_NEEDED), restarting app.\r\n{code}\r\n\r\nI create notification and intents like this(from documentation's example):\r\n\r\n{code:java}\r\nvar intent = Ti.Android.createIntent({\r\n\t action: Ti.Android.ACTION_MAIN,\r\n\t // Substitute the correct class name for your application\r\n\t className: 'com.example.exampleApp.ExampleappActivity',\r\n\t // Substitue the correct package name for your application\r\n\t packageName: ''com.example.exampleApp',\r\n\t \r\n\t});\r\n\tintent.flags |= Ti.Android.FLAG_ACTIVITY_CLEAR_TOP | Ti.Android.FLAG_ACTIVITY_NEW_TASK;\r\n\tintent.addCategory(Ti.Android.CATEGORY_LAUNCHER);\r\n\t\r\n\t\r\n\t// Create a PendingIntent to tie together the Activity and Intent\r\n\tvar pending = Titanium.Android.createPendingIntent({\r\n\t intent: intent,\r\n\t flags: Titanium.Android.FLAG_UPDATE_CURRENT\r\n\t});\r\n\t\r\n\t// Create the notification\r\n\tvar notification = Titanium.Android.createNotification({\r\n\t // icon is passed as an Android resource ID -- see Ti.App.Android.R.\r\n\t icon: Ti.App.Android.R.drawable.icon,\r\n\t contentTitle: 'Something Happened',\r\n\t contentText : 'Click to return to the application.',\r\n\t contentIntent: pending\r\n\t});\r\n\t\r\n\t// Send the notification.\r\n\tTitanium.Android.NotificationManager.notify(1, notification);\r\n{code}\r\n\r\nWhen I click on the notification, I get restart is needed dialog and restart loop(app won't start correctly).\r\nHave you please some advice what to do to avoid this?\r\nThank you", "attachment": [], "flagged": false, "summary": "Android Local Notification restart", "creator": { "name": "max87", "key": "max87", "displayName": "Marian Kucharcik", "active": true, "timeZone": "Europe/Prague" }, "subtasks": [], "reporter": { "name": "max87", "key": "max87", "displayName": "Marian Kucharcik", "active": true, "timeZone": "Europe/Prague" }, "environment": "macOS Sierra\r\nTiSDK 6.3.0GA\r\nAppc Studio 5.0GA", "comment": { "comments": [ { "id": "432209", "author": { "name": "max87", "key": "max87", "displayName": "Marian Kucharcik", "active": true, "timeZone": "Europe/Prague" }, "body": "I solved this issue by addidng \r\n{code:java}\r\ntrue\r\n{code}\r\nto tiapp.xml([According to documentation|http://docs.appcelerator.com/platform/latest/#!/guide/tiapp.xml_and_timodule.xml_Reference] it should be default value...)", "updateAuthor": { "name": "max87", "key": "max87", "displayName": "Marian Kucharcik", "active": true, "timeZone": "Europe/Prague" }, "created": "2017-12-15T12:14:45.000+0000", "updated": "2017-12-15T12:14:45.000+0000" } ], "maxResults": 1, "total": 1, "startAt": 0 } } }