22
Views
2
Comments
[OneSignal Plugin Sample] OneSignal Plugin Samle Disable Push Notification
Question
onesignal-plugin-sample
Mobile icon
Forge asset by Daniel Martins
Application Type
Mobile

Hello Daniel,

About half a year ago, when I first started using Outsystem, I decided that I would start creating an application with push notifications. This was the main task of the application.

I honestly tried to understand this documentation, but my efforts were futile, I could not get the plugin to work.

https://success.outsystems.com/documentation/how_to_guides/integrations/how_to_use_push_notifications_with_onesignal/

This documentation may be outdated. It is not possible to customize the process on it.

Therefore, I used your sample, I had to contact technical support, deep links did not work, Together we found a small flaw in your sample. Everything works well today. 

Now I almost approached the release of the app, and I ran into a new problem. 

The plugin has the option DisableSubscription. 

Your sample is built in a way that makes this functionality impossible to use.

Unfortunately, I'm not a programmer, and I can not understand all the intricacies of the code.

 I checked all the places where you used EnablePushNotifications, but I still do not understand which of them renews the subscription.

I made a toggle button on user side that disable the subscription. But when you enter the application, the subscription is returned.

How can I implement disable subscribing?


2024-06-12 10-07-10
Daniel Martins

Hi Anton,

Thank you for your feedback.

The sample works with deep links, there is no known issue with the sample.

In other to have the redirecting working, you needed to make sure you have the PushNotificationWrapper on every pages of your application, this includes Layout and specially LayoutBlank (that is typically used on Splash Screen and Login screen).

I believe that this part was not implemented on your application, glad that support was able to guide you throughout the implementation details and it's sorted out. 

Unfortunately, I am not familiar with DisableSubscription  method, and what needs to be taken into consideration to make it work.

OneSignal sample only supports a limited nr of functionalities not all methods available are implemented. But I will contact you directly to understand what kind of support OutSystems can provided to you and your organisation. 

It would be great if someone from the community would be able to implement and add this functionality to the sample!

UserImage.jpg
Anton Polyakov

Hi Daniel,

As I wrote earlier, this functionality is in the plugin OneSignal.

I made a user side toggle button that disables the subscription. But when you enter the application, the subscription is returned.

EnablePushNotifications occurs in many places, but I was never able to understand in which of the processes, but again it becomes Enable after restart app.

I'm more of an advanced user than a programmer, I'm unlikely to be able to solve this problem on my own. I'm hoping someone implements it.

Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.