LaunchData Broken on Android
Nobody has claimed this yet.
Assessment
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Newbie friendliness
- 38/100
- Issue type
- Bug
- Clarity
- Mostly clear
- Activity status
- Stale
- Tech stack
- android, firebase, javascript
- Domain
- mobile-dev
Research direction
The issue identifies the firebase.Messaging.launchData entry point and the notification-tap startup path; begin by reproducing the Android behavior on the listed devices and tracing how launch data is assigned. Compare the Android result with the provided iPhone output; done means launchData is populated after an Android notification tap with the custom data available to the app.
Written by the indexing model from the issue text.
Description
Problem description
LaunchData isn't set on Android upon launching the app through a notification.
Here is the console output after being launched with a notification tap on Android:
> Firebase token: <token>
> No launch data received.
Expected behavior
Here is the console output after being launched with a notification tap on iPhone:
> Firebase token: <token>
Custom Launch Data Detected: { aps:
{ alert:
{ title: <title>,
body: <body> } },
'gcm.notification.data': '{<myCustomData>}',
'google.c.a.e': '1',
optinaldata1: 'value',
'gcm.message_id': <id> }
Environment
- Tabris.js version: 3.0.0-beta2-dev.20190306
- Devices tested:
- iPhone 7 with iOS 11.1.1
- HTC Desire 530 with Android 6.0.1
- Pixel 3XL with Android 9
Code snippet
/* ask for permissions */
if (device.platform == 'iOS') firebase.Messaging.requestPermissions();
console.log("Firebase token: " + firebase.Messaging.token);
setTimeout(() => { // workaround for Issue #41
if (typeof firebase !== "undefined") {
if (typeof firebase.Messaging.launchData !== "undefined" && firebase.Messaging.launchData) {
console.log("Custom Launch Data Detected: ", firebase.Messaging.launchData);
}
else {
console.log("No launch data received.");
}
}
});
Workaround for #41
- Dominant language
- JavaScript
- Stars
- 6
- Forks
- 5
- PR merge metrics
- No merged PRs in 30d
Getting set up
This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from eclipsesource/tabris-plugin-firebase
-
broken linkOpen
Difficulty 1/5 Under an hour Newbie friendliness 65/100
-
Difficulty 3/5 1-2 days Newbie friendliness 35/100
eclipsesource/tabris-plugin-firebase#76 · 2 comments ·
-
bug ios
Difficulty 3/5 1-2 days Newbie friendliness 45/100
-
Difficulty 3/5 1-2 days Newbie friendliness 35/100
eclipsesource/tabris-plugin-firebase#64 · 1 comment ·
-
Difficulty 3/5 1-2 days Newbie friendliness 35/100
eclipsesource/tabris-plugin-firebase#63 · 4 comments ·
All issues in eclipsesource/tabris-plugin-firebase
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
Maintainers usually reply within 1 day
-
Add: EUROTV NEWSOpenchannels:add check:passed
Difficulty 2/5 1-3 hours Newbie friendliness 70/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 65/100
-
curriculum documentation quality
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
githubnext/gh-aw-workshop#4638 ·
Maintainers usually reply within 1 day
-
clawsweeper:fix-shape-clear clawsweeper:queueable-fix clawsweeper:source-repro impact:ux-friction issue-rating: 🦞 diamond lobster no-stale P2
Difficulty 2/5 1-3 hours Newbie friendliness 65/100
openclaw/openclaw-enterprise#2571 · 1 comment · 1 reaction ·
Maintainers usually reply within 1 day