Git Product home page Git Product logo

pushnotificationplugin's Introduction

Push Notification Plugin for Xamarin iOS and Android

Simple cross platform plugin for handling push notifications. Uses FCM for Android and APS for iOS.

Build Status

Setup

Platform Support

Platform Version Tested
Xamarin.iOS iOS 8+ iOS13
Xamarin.Android API 15+ API 28

API Usage

Call CrossPushNotification.Current from any project to gain access to APIs.

Features

  • Receive push notifications
  • Support for push notification category actions
  • Customize push notifications
  • Localization
  • Storage of the push token can be overwritten by a delegate.

Documentation

Here you will find detailed documentation on setting up and using the Push Notification Plugin for Xamarin

Contributors

pushnotificationplugin's People

Contributors

b4tel avatar char0394 avatar clintonrocksmith avatar dependabot[bot] avatar hajuuk avatar kpto avatar pavlolukianets avatar px7-941 avatar rdavisau avatar rdelrosario avatar vikram-ma avatar zainniazi avatar zeniale avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

pushnotificationplugin's Issues

Unstable on background

Hi, I'm getting a few problems with the notifications.
The trouble is:
I have installed on a few devices, is something like production environment where I use here at my work.
Well, at one of the devices (Samsung J5) the app receives all the notifications that I send thru my website.
My cellphone (Samsung J7) doesn't receive all of the notifications, just sometimes, even when I open the app, it doesn't give the notifications that I've 'missed'.
And a third device (Samsung Duos) never received notifications.

I'm quite new on mobile dev, so I don't know what look, maybe is something about background services.

Well, thanks in advance!
Sorry for English.

Push Notification not working correctly

Hi,
I using yours PushNotificationPlugin for my application, but It`s not working correctly,

  1. When I configured code in MainApplication.cs (All configurations done according to sample project your guys provided )..... pushNotification not receiving, because of device token all ways empty string
    //MainApplication.cs
    [Application]
    public class MainApplication : Application
    {
    public MainApplication(IntPtr handle, JniHandleOwnership transer) : base(handle, transer)
    {

     }
    
     public override void OnCreate()
     {
         base.OnCreate();
    

#if DEBUG
PushNotificationManager.Initialize(this, true);
#else
PushNotificationManager.Initialize(this,false);
#endif
//Set the activity type that will handle your notifications
PushNotificationManager.NotificationActivityType = typeof(MainActivity);

        CrossPushNotification.Current.OnNotificationOpened += (s, p) =>
        {
            //Log.Debug(TAG, "OPENED");

            foreach (var data in p.Data)
            {
                if (data.Key == "promoId")
                {
                    if (data.Value != null)
                    {
                        //Log.Debug(TAG, "PromoID::" + data.Value.ToString());
                        PushNotificationToken.PromoId = data.Value.ToString();
                    }
                    else
                    {
                        PushNotificationToken.PromoId = null;
                    }
                }
            }
        };
    }
}

//App.cs in main project
all done for OnStart() method

//MainActivity.cs end of the onCreate method like below
protected override void OnCreate(Bundle bundle)
{
base.OnCreate(bundle);
//rest code
LoadApplication(new App());
PushNotificationManager.ProcessIntent(Intent);
}

    protected override void OnNewIntent(Intent intent)
    {
        base.OnNewIntent(intent);
        PushNotificationManager.ProcessIntent(intent);
    }

  1. When I configured code in MainActivity.cs PushNotification receiving both background and foreground, but in both natures not trigger OnNotificationOpened event.

Unable to install into Xamarin Android project targeting android 8

We're trying to use ver 1.1.5 of your plugin. However, we can't get it to install as we're targeting Android 8. When we try to install within the Android project it starts to install the dependencies but then when it hits the Xamarin.GooglePlayServices.Basement pkg, it immediately stops and rolls back the install. Is it because the dependency should be for Xamarin.GooglePlayServices.Base vs .Basement?

Below is log:
Attempting to gather dependency information for package 'Plugin.PushNotification.1.1.5' with respect to project 'MobileApp.UI.Android', targeting 'MonoAndroid,Version=v8.0'
Gathering dependency information took 10.02 min
Attempting to resolve dependencies for package 'Plugin.PushNotification.1.1.5' with DependencyBehavior 'Lowest'
Resolving dependency information took 0 ms
Resolving actions to install package 'Plugin.PushNotification.1.1.5'
Resolved actions to install package 'Plugin.PushNotification.1.1.5'
Found package 'Plugin.PushNotification 1.1.5' in 'C:\dev\TAFS\MobileApp\packages'.
Retrieving package 'Xamarin.Firebase.Common 60.1142.0' from 'nuget.org'.
Retrieving package 'Xamarin.Firebase.Iid 60.1142.0' from 'nuget.org'.
Retrieving package 'Xamarin.Firebase.Messaging 60.1142.0' from 'nuget.org'.
Retrieving package 'Xamarin.GooglePlayServices.Base 60.1142.0' from 'nuget.org'.
Retrieving package 'Xamarin.GooglePlayServices.Tasks 60.1142.0' from 'nuget.org'.
Adding package 'Xamarin.GooglePlayServices.Tasks.60.1142.0' to folder 'C:\dev\TAFS\MobileApp\packages'
Added package 'Xamarin.GooglePlayServices.Tasks.60.1142.0' to folder 'C:\dev\TAFS\MobileApp\packages'
Added package 'Xamarin.GooglePlayServices.Tasks.60.1142.0' to 'packages.config'
Successfully installed 'Xamarin.GooglePlayServices.Tasks 60.1142.0' to MobileApp.UI.Android
Adding package 'Xamarin.Firebase.Common.60.1142.0' to folder 'C:\dev\TAFS\MobileApp\packages'
Added package 'Xamarin.Firebase.Common.60.1142.0' to folder 'C:\dev\TAFS\MobileApp\packages'
Install failed. Rolling back...
Package 'Xamarin.Firebase.Common.60.1142.0 : Xamarin.GooglePlayServices.Basement [60.1142.0, 60.1142.0], Xamarin.GooglePlayServices.Tasks [60.1142.0, 60.1142.0]' does not exist in project 'MobileApp.UI.Android'
Removed package 'Xamarin.GooglePlayServices.Tasks.60.1142.0 : Xamarin.GooglePlayServices.Basement [60.1142.0, 60.1142.0]' from 'packages.config'
Removing package 'Xamarin.Firebase.Common.60.1142.0 : Xamarin.GooglePlayServices.Basement [60.1142.0, 60.1142.0], Xamarin.GooglePlayServices.Tasks [60.1142.0, 60.1142.0]' from folder 'C:\dev\TAFS\MobileApp\packages'
Removed package 'Xamarin.Firebase.Common.60.1142.0 : Xamarin.GooglePlayServices.Basement [60.1142.0, 60.1142.0], Xamarin.GooglePlayServices.Tasks [60.1142.0, 60.1142.0]' from folder 'C:\dev\TAFS\MobileApp\packages'
Removing package 'Xamarin.GooglePlayServices.Tasks.60.1142.0 : Xamarin.GooglePlayServices.Basement [60.1142.0, 60.1142.0]' from folder 'C:\dev\TAFS\MobileApp\packages'
Removed package 'Xamarin.GooglePlayServices.Tasks.60.1142.0 : Xamarin.GooglePlayServices.Basement [60.1142.0, 60.1142.0]' from folder 'C:\dev\TAFS\MobileApp\packages'
Executing nuget actions took 1.2 min
This collection is read-only.
Time Elapsed: 00:11:13.3780246
========== Finished ==========

iOS OnNotificationOpened

I upgraded to the version 1.3 in order to control the registering of notifications.
This code was working before in iOS, and is working in Android, but now isn't working in iOS.
All notifications that are opened come in as OnNotificationReceived.
This is my App.xaml.cs
` CrossPushNotification.Current.OnNotificationReceived += (s, p) =>
{
System.Diagnostics.Debug.WriteLine("Received");
NotificationProvider.OnNotificationReceived(JObject.FromObject(p.Data));
};

        CrossPushNotification.Current.OnNotificationOpened += (s, p) =>
        {
            System.Diagnostics.Debug.WriteLine("Opened");
            NotificationProvider.OnNotificationOpened(JObject.FromObject(p.Data), p.Identifier);
        };`

This is my AppDelegate.cs
' LoadApplication(new App());
PushNotificationManager.Initialize(options, false);
'
` public override void RegisteredForRemoteNotifications(UIApplication application, NSData deviceToken)
{
PushNotificationManager.DidRegisterRemoteNotifications(deviceToken);
}

    public override void FailedToRegisterForRemoteNotifications(UIApplication application, NSError error)
    {
        PushNotificationManager.RemoteNotificationRegistrationFailed(error);

    }
    // To receive notifications in foregroung on iOS 9 and below.
    // To receive notifications in background in any iOS version
    public override void DidReceiveRemoteNotification(UIApplication application, NSDictionary userInfo, Action<UIBackgroundFetchResult> completionHandler)
    {
        PushNotificationManager.DidReceiveMessage(userInfo);
    }`

Android OnNotificationOpened Not Firing

The iOS OnNotificationOpened works but when trying to get to work with android it doesn't work. I receive messages when the app is in the foreground, and when I click on notifications it opens the app but the OnNotificationOpened isn't called.
I need this to direct users to a specific page.
Are there any additional settings that are required, or additional code.

` CrossPushNotification.Current.OnNotificationReceived += (s, p) =>
{
System.Diagnostics.Debug.WriteLine("Received");
NotificationProvider.OnNotificationReceived(JObject.FromObject(p.Data));
};

        CrossPushNotification.Current.OnNotificationOpened += (s, p) =>
        {
            System.Diagnostics.Debug.WriteLine("Opened");
            NotificationProvider.OnNotificationOpened(JObject.FromObject(p.Data), p.Identifier);
        };

`

Notification doesn't show in background when targeting API 26

When the app receives a notification in the background, I don't receive notifications.
I do receive this warning:
Notification: Use of stream types is deprecated for operations other than volume control

Everything works perfectly when targeting API 25. doing a few quick searches, it seems there's a deprecation on NotificationCompat.Builder(Context)
and this has changed to NotificationCompat.Builder(Context, String)

Is there an additional step I need to do to get this working?

Source:
https://forums.bignerdranch.com/t/no-notifications-in-oreo/13160
https://stackoverflow.com/questions/45395669/notifications-fail-to-display-in-android-oreo-api-26

Push notification not recevied

Hi,
I am using your plugin. Thanks for writing this, it saves a lot of time. However I have an issue which I do not understand. During debugging my IOS app works fine. I sent silent push notifications that will arrive without any problem. But when I use the app without connecting it to the debugger it seems that the Push notifications are not received. Could this be that I have done something wrong? Or should it be working regardless if you debug it or not. (I am not talking about a prod version as I know I need a different certificate).

Push Notification not working (API 26)

I am testing push notifications on a Xiaomi Mi A1 with Android 8.0 and push notifications are not received when app is opened, in foreground.

If app is killed everything ok.

CrossPushNotification.Current.OnNotificationReceived not fired

Hi,

I am sending the payload:

{
"to" : "APA91bHun4MxP5egoKMwt2KZFBaFUH-1RYqx...",
"notification" : {
"body" : "test body",
"title" : "test Title"
},
"data" : {
"guid" : "234234-232434..."
}
}

Status application is closed:
The notification arrived and when I click on the notifcation the app id opened but the event CrossPushNotification.Current.OnNotificationReceived is not triggered? Do I am something wrong here?

I would like to load the complete message from the server using the guid and display it.

On IOS this works fine.

Using version 1.1.5

OnNotificationOpened in Android fired unneccesarily when not in Active USB Debugging

I have been using this plugin and testing it. One issue I have found is that (which is very hard to recreate)

OnNotificationOpened fires everytime the App launch even without any notification, and navigates to the page which we have given in the event. This breaks the usability of app.

The issue though is not found when we are debugging with USB connected. It will occur when we open the app directly after a debug session and it repeats everytime. Also reproduced in Release mode too.

Some Insights I tried to gain: The dictionary p.Data is not null, it contains Key: "profile" Value "0".

Any idea why this is happening? This issue is not there in iOS

Shows only one notification at a time

Hi,
How do I do to display multiples notifications? Currently, one notification replace another.

My payload:

var message = new Message
{
Data = new
{
title = "xxxxxx",
message = description,
Id = new Guid().ToString(),
parameter = parameter,
type = notification,
typeGallery = typeGallery
},
RegistrationIds = tokensUser,
};

Register()

I'm using a xamarin forms app. I need to delay the registration of push notifications until after I receive user credentials.
I see how to initialize with the auto register but don't see a way to call the register from the shared .cs

Do you have an example on calling the register when not auto registering?

Q: Unable to show notification tray

Hi,
Very useful plugin.

I downloaded sample and got token then tried sending notification using https://pushtry.com/ . It hit the OnNotificationReceived but could not show tray. Is there some setting I need to add to show the tray on top of screen.

Not Working (API 21)

Hi!

I do all in exemple but not worked for me.

I can get a Token (but its not display on Firebase Console, have any place to ???), but when I send notification from Firebase Console (to all and token) it's not work.

Can you help me ?!
Thanks

I do not receive notifications when the app is closed

I am developing a Xamarin.Forms app for Android. Apparently everything works very well, I can receive notifications when the app is open and when it is minimized, but when I close the process the app no longer allows me to receive notifications.

I understand an app has to generate a service in the background so that it can receive notifications in case it is closed, but I am not sure that this service is being created.

I await your prompt response.

iOS - Turning off auto registration still prompts for permission

After working in my own app for a while I decided to try to sample app and I am unable to get it working there either.

When calling PushNotificationManager.Initialize(options, false) in FinishedLaunching, I am still getting prompted for permission. Source in GitHub shows that it should not be calling RegisterForRemoteNotificaitons() but Nuget binary seems to do it.

I tried updating the sample to later plugin, XF, etc. and still not working.

Is there something else I need to do in order to defer registration until I call Register()?

PushNotificationManager.Initialize error

If I comment line //PushNotificationManager.Initialize(this,true);
No problem, applicati in start. Without comment crash when PushNotificationManager.Initialize line is read.
I try with try/catch Block to read type errore in catch clause but nothing. Why do this? I think is Xamarin.Firebase.Id reference the problem

OnTokenRefresh not fired on IOS

Hi, Thanks for the plugin.

I have a problem when using it in IOS (version 11.0.1). No FCM token is generated. CrossPushNotification.Current.OnTokenRefresh never is called and CrossPushNotification.Current.Token always returns an empty value.

I followed all the instructions, incorporated the Google-Service.Info.plist file. I have uploaded the APS certificates for both development and production. I have also tried the example project of the repository and also the same thing happens.

Could you tell me what I can do to fix it?

Thanks in advance.

Build error

The "ResolveLibraryProjectImports" task failed unexpectedly.

Custom Notification Visibility

Hi,

I want to customize the way of notification its showing.

I mean, I want to "merge" notifications as other applications can (for example) or show a thumbail of an image.

Is there any option to "customize" the notification incoming after its showed in the status bar of the device?

Thank you

Firebase App Not Intialized?

Hi I am getting this error and i have followed your getting started guide. I am using your plugin with XAMARIN FORMS

Java.Lang.IllegalStateException Default Firebase App is not intialized Make sure to call FirebaseApp.InitializeApp(Context) first.

Code Below (Also Google Services Json is in the correct place and set to the correct build action)

MainActivity.cs
protected override void OnCreate(Bundle bundle)
{
TabLayoutResource = Resource.Layout.Tabbar;
ToolbarResource = Resource.Layout.Toolbar;

        base.OnCreate(bundle);

        global::Xamarin.Forms.Forms.Init(this, bundle);

        PushNotificationManager.Initialize(this, true);

        LoadApplication(new App());
        PushNotificationManager.ProcessIntent(Intent);

        //Handle notification when app is closed here
        CrossPushNotification.Current.OnNotificationReceived += (s, p) =>
        {
            //Toast.MakeText(this, "Message Received", ToastLength.Long);
            //System.Diagnostics.Debug.WriteLine("Received A Message");
        };
    }

Android Manifest







Any help would be greatly appreciated

message received but OnNotificationReceived didnt run

hello there,

when app is closed message is received in the device
but OnNotificationReceived didn't update the badge
//in MainApplication
//Handle notification when app is closed here
CrossPushNotification.Current.OnNotificationReceived += (s, p) =>
{
CrossBadge.Current.SetBadge(5);
};
the code above works fine in foreground and background not when app is killed
any solution for this please
thanks

Android post install: Exception while loading assemblies

Hello!
I installed latest version in my Xamarin.Forms project, and it worked for iOS, but upon installing on Android I am getting this error:

Error: Exception while loading assemblies: System.IO.FileNotFoundException: Could not load assembly 'Xamarin.Android.Support.Compat, Version=1.0.0.0, Culture=neutral, PublicKeyToken='. Perhaps it doesn't exist in the Mono for Android profile?
File name: 'Xamarin.Android.Support.Compat.dll'
  at Java.Interop.Tools.Cecil.DirectoryAssemblyResolver.Resolve (Mono.Cecil.AssemblyNameReference reference, Mono.Cecil.ReaderParameters parameters) [0x00099] in /Users/builder/data/lanes/5749/ef47226b/source/xamarin-android/external/Java.Interop/src/Java.Interop.Tools.Cecil/Java.Interop.Tools.Cecil/DirectoryAssemblyResolver.cs:229 
  at Java.Interop.Tools.Cecil.DirectoryAssemblyResolver.Resolve (Mono.Cecil.AssemblyNameReference reference) [0x00000] in /Users/builder/data/lanes/5749/ef47226b/source/xamarin-android/external/Java.Interop/src/Java.Interop.Tools.Cecil/Java.Interop.Tools.Cecil/DirectoryAssemblyResolver.cs:179 
  at Xamarin.Android.Tasks.ResolveAssemblies.AddAssemblyReferences (Java.Interop.Tools.Cecil.DirectoryAssemblyResolver resolver, System.Collections.Generic.ICollection`1[T] assemblies, Mono.Cecil.AssemblyDefinition assembly, System.Boolean topLevel) [0x0015c] in <1cd3130cc85f47648c035bea326826d4>:0 
  at Xamarin.Android.Tasks.ResolveAssemblies.Execute

I tried removing all packages, reinstalling Xamarin.Forms along with PushNotification plugin causes same result. Also tried emptying bin/obj folders, restarting macbook and xamarin, nothing helped.

This issue is very similar to #11 , which was not fixed and was closed.

When to unscribe

I see the way it works is by subscribing to the singleton's event handler

CrossPushNotification.Current.OnNotificationReceived +=

but my question is, when should I unscribe?

Registration ID

Hi.
I have set up the code to receive notifications in my xamarin forms app (in the Android project). I have tested this by sending a notification from my Firebase account.
I see that when sending a notification from code that we require the registration id. How do we get the registration id please? Out of interest, is registration id mandatoty, or can we send to all registered devices?
Thanks

How to test a message sending from Firebase Cloud Messaging (FCM)

Hi, I am new on pushing messaging service. So, despite of everything that you have already published regarding PushNotification Plugin 1.3.0, I was not able to make it works. I have followed line by line. I have NO errors. However I also do not receive any message from FCM.

I am compiling with Android 8.1 and testing in Android Nougat 7.0. Inside Cross Plataform Solution (android / IOS). Everthing seems to be well compiled.

I set CrossPushNotification.Current.RegisterForPushNotifications() in OnStart() of my App.cs. Is that fine?
What exactly is my "default notification channel ID and Name"? I am use as the tutorial...

if (Build.VERSION.SdkInt >= Android.OS.BuildVersionCodes.O)
{
//Change for your default notification channel id here
PushNotificationManager.DefaultNotificationChannelId = "DefaultChannel";

                //Change for your default notification channel name here
                PushNotificationManager.DefaultNotificationChannelName = "General";
            }

Please, can you give some directions to find out the correct way?

Thank you very much,

regards,
Joilson

OnNotificationOpened is not working

I implemented like the GIT, but when the App is in Background mode and I tapped a message, sent by Firebase, the App does not open. When the APP is running, i receive the message at the app normaly.

I am using Xamarin Forms (Android).

Tks

Android crash when receive notification from Firebase console with sound

Hi,

I am getting this crash when send a notification with parameters and sound from the firebase console.

[AndroidRuntime] Parameter name: length
[AndroidRuntime]   at System.String.Substring (System.Int32 startIndex, System.Int32 length) [0x0004a] in <85f7b553f08f43a8a65ed84e5bc4a8ce>:0 
[AndroidRuntime]   at Plugin.PushNotification.DefaultPushNotificationHandler.OnReceived (System.Collections.Generic.IDictionary`2[TKey,TValue] parameters) [0x00201] in <7bfb079c05ee4ace8e60f5228d71d2db>:0 
[AndroidRuntime]   at Plugin.PushNotification.PNMessagingService.OnMessageReceived (Firebase.Messaging.RemoteMessage message) [0x001e1] in <7bfb079c05ee4ace8e60f5228d71d2db>:0 
[AndroidRuntime]   at Firebase.Messaging.FirebaseMessagingService.n_OnMessageReceived_Lcom_google_firebase_messaging_RemoteMessage_ (System.IntPtr jnienv, System.IntPtr native__this, System.IntPtr native_message) [0x00011] in <9d0d1f3bc0ed4aa895271e840e47dc1a>:0 
[AndroidRuntime]   at (wrapper dynamic-method) System.Object:5fe8cbfb-18dd-4ec9-b81b-d93389c12952 (intptr,intptr,intptr)
[AndroidRuntime] 	at md573c9264e488c62a04468d109fbc8adb8.PNMessagingService.n_onMessageReceived(Native Method)
[AndroidRuntime] 	at md573c9264e488c62a04468d109fbc8adb8.PNMessagingService.onMessageReceived(PNMessagingService.java:29)
[AndroidRuntime] 	at com.google.firebase.messaging.FirebaseMessagingService.zzl(Unknown Source)
[AndroidRuntime] 	at com.google.firebase.messaging.FirebaseMessagingService.zzJ(Unknown Source)
[AndroidRuntime] 	at com.google.firebase.messaging.FirebaseMessagingService.handleIntent(Unknown Source)
[AndroidRuntime] 	at com.google.firebase.iid.zzb$1.run(Unknown Source)
[AndroidRuntime] 	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1133)
[AndroidRuntime] 	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:607)
[AndroidRuntime] 	at java.lang.Thread.run(Thread.java:761)

Regards,

Andrés R.

Short/invalid generated token on ios.

Hi,
The token generated on ios is to short and invalid to send messages from firebase panel or from rest api.
Android version is ok.

Any sujestion?

Congratulations for your job.

Carlos Bolina.

Exception while loading assemblies

Hi,

I just added this package to a Xamarin.Forms solution, both the PCL and the Android projects.

The PCL builds fine but on build the Android project throws:

System.IO.FileNotFoundException: Could not load assembly 'Xamarin.Android.Support.Compat'

Wen I try to add this package it says

Could not install package 'Xamarin.Android.Support.Compat 26.0.2'. You are trying to install this package into a project that targets 'MonoAndroid,Version=v6.0', but the package does not contain any assembly references or content files that are compatible with that framework. For more information, contact the package author.

Any idea what this is about? I cleaned, rebuild, etc but it's not working...

Only the first push message is received

Hi,
just upgraded from the old push component. Like this ones implementation, much cleaner thanks.

My problem is that the first push message is handled by the application (ie. shows in the logs, and I manually do a notification using a toast component as the messages are data that needs interpreting. ), then the following messages seem to bypass the application (not in the logs at all) and just pop up the toast outside the app. It is the active application, in debug mode.. Have tried with debugger attached and not attached. Same results.

using IOS - latest, followed the example.

help? thanks :)

hmm, I think there's a variation in the data I'm sending in the push, as they are generated from 2 different manners.

Default FirebaseApp is not initialized in this process. Make sure to call FirebaseApp.initializeApp(Context) first.

Hi

I find your plugin fantastic.

I followed the examples to integrate it in both my PCL project and Android. But when I start the application I get the following exception:

captura de pantalla 2017-10-18 a las 13 50 55

The exception appears to occur at line 132 of the PushNotificationManager.

var token = Firebase.Iid.FirebaseInstanceId.Instance.Token;
Could it be due to some packet incompatibility?

The packages configuration for my android project is Android Packages

The package configuration for my PCL project is PCL packages

Thanks in advance.

IOS and Azure Notification Hub

Hi. We have been sending our notifications with the Azure Notification Hub up until now. We are now trying out your Nuget as it covers both Android and IOS. Can we still use the Azure Notification Hub to send the Apple APNS Notifications and to receive them using your nuget and the code provided? I have my receiving code working (tested using Pusher) and am now looking at the best way to Send.
Many thanks

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.