rdelrosario / xamarin-plugins

Cross platform Xamarin & Windows plugins for PCLs
MIT License
179 stars 161 forks source link

Change Dependencies to just use requierd packages #16

Closed jorgenstorlie closed 8 years ago

jorgenstorlie commented 8 years ago

Now it require Xamarin.GooglePlayServices, the lates version is very big

It may be better to just use requierd packages: http://redth.codes/Xamarin-Google-Play-Services-Improvements/

rdelrosario commented 8 years ago

Thanks for the suggestion. Just changed the depencies and updated the Android implementation.

https://www.nuget.org/packages/Xam.Plugin.PushNotification/

jorgenstorlie commented 8 years ago

Is anything else changed?

This code does not work anymore:

CrossPushNotification.Current.Register ();

(the app is 5 mb smaler now)

rdelrosario commented 8 years ago

What issues are you having?

Are you getting the token? On Aug 5, 2015 3:36 AM, "Jørgen Storlie" notifications@github.com wrote:

Is anything else changed?

This code does not work anymore:

CrossPushNotification.Current.Register ();

(the app is 5 mb smaler now)

— Reply to this email directly or view it on GitHub https://github.com/rdelrosario/xamarin-plugins/issues/16#issuecomment-127901096 .

jorgenstorlie commented 8 years ago

Then I compile I get this error on the code: CrossPushNotification.Current.Register ();

Error CS0103: The name `CrossPushNotification' does not exist in the current context (CS0103) (Contendo.Android)

Using this: using PushNotification.Plugin;

rdelrosario commented 8 years ago

Weird. I tested this before releasing. Try removing the package , adding it again and cleaning the solution. On Aug 5, 2015 6:21 AM, "Jørgen Storlie" notifications@github.com wrote:

Then I compile I get this error on the code: CrossPushNotification.Current.Register ();

Error CS0103: The name `CrossPushNotification' does not exist in the current context (CS0103) (Contendo.Android)

Using this: using PushNotification.Plugin;

— Reply to this email directly or view it on GitHub https://github.com/rdelrosario/xamarin-plugins/issues/16#issuecomment-127949199 .

jorgenstorlie commented 8 years ago

I have done this a couple of times

The class public class CrossPushNotificationListener : IPushNotificationListener compiles so something is working

rdelrosario commented 8 years ago

Try the newest version of the package just published. Let me know if now works

jorgenstorlie commented 8 years ago

Succes