-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Tie leanplum to Telemetry toggle #945
Comments
Tested this and Leanplum notifications are still being sent after disabling the Telemetry toggle on all devices. I've set leanplum to send a notification whenever the app was started or resumed. Devices & build:
Re-opening the issue. |
Is blocking #864. |
Checked on several devices and the issue is still reproducing, after disabling the telemetry switch I am still receiving notifications. Tried starting the app with the toggle disabled by default and notifications were still received. Only when pausing the notification in the dashboard did I not receive them anymore. Please let me know if you need any other information that could be of help. Re-opening. |
@bsurd unfortunately Leanplum doesn't offer us a way to stop the service once it has been started in the app. So the grand effect only happens the next time the application is run. When you disable the telemetry toggle in the app we do stop sending events immediately. The next time you start the app Leanplum won't be spun up. |
This breaks expectation of the toggle. The standard behavior on Android is that a toggle takes effect immediately. |
@kbrosnan The toggle is working immediately from the aspect of collecting Telemetry. This is referring to using another feature within Leanplum which is sending a push / message to a subset of users which technically still works because Leanplum has been initialized. The other solution we could do is force-restart the app when the user clicks that toggle which isn't a great experience either. Do you know what Fennec does in this case? |
@kbrosnan - do you know how this was implemented for Fennec, I assume that would have the same issue, no? |
Petru-Mugurel Lingurar could clarify the situation since he worked on Leanplum on Fennec. From my knowledge, it's possible to stop the notifications as well. There are some explanations here. |
As Bogdan said on Fennec we do have the option to stop Leanplum altogether, something that was implemented in bug 1454686. While Leanplum doesn't officially expose APIs for stopping a currently running session we used some internal APIs (public methods) to achieve what we wanted: stop all notifications, in-app banners, telemetry and events tracking - Fennec changeset I checked with Fenix and I see that here Leanplum is used as an external dependency while on Fennec we actually include the code inside and sprinkle it with our modifications. One important such modification is making Leanplum#stop() public. |
Removing the QA needed flag, please re-add as soon as this is ready for testing. |
Can confirm, everything works as intended now. Verified on several devices and didn't encounter any other problems. |
┆Issue is synchronized with this Jira Task
The text was updated successfully, but these errors were encountered: