Skip to content

Instantly share code, notes, and snippets.

View c0mm4nDer's full-sized avatar
👩‍💻
Working from home

Sayied Amir Ahmadi c0mm4nDer

👩‍💻
Working from home
View GitHub Profile
@c0mm4nDer
c0mm4nDer / Notification.cs
Created October 8, 2017 16:19
One Signal ClearOneSignalNotifications For Xamarin.Android
/* All xamarin programmers know that binding libraries is not always done correctly.
One of these libraries is OneSignal. In OneSignal plugin, there is a method called "ClearOneSignalNotifications"
that clears all notifications displayed.
This method is not included in the binding provided for xamarin.For Fix this we should rewrite this method.
You can see original code of this method in [OneSignal SDK Android](https://github.com/OneSignal/OneSignal-Android-SDK/blob/b1c01e0404b3f39d433f48abfa79c99e2af1f6f0/OneSignalSDK/onesignal/src/main/java/com/onesignal/OneSignal.java).
I used ADO for connect to sqlite but you can rewrite it by any kind of sqlite connection. I hope this code can help you.*/
using Android.App;
using Android.Content;
using Mono.Data.Sqlite;