OneSignal / OneSignal-Xamarin-SDK

OneSignal is a free push notification service for mobile apps. This plugin makes it easy to integrate your Xamarin app with OneSignal. https://onesignal.com
Other
104 stars 50 forks source link

OneSignal MAUI Support for Push Notification #281

Closed aokocax closed 1 year ago

aokocax commented 2 years ago

There are 2 months left to GA (General Availability), but there is no push notification library working on the MAUI side.

I am trying to implement OneSignal to my MAUI project but when I try to build I am getting this error.

image

When I compile the project myself and include it in the project without installing it from nuget, the above error goes away, but I get this error.

image

I would be very grateful if you could help in any way.

excellapay commented 2 years ago

Any word on the MAUI Roadmap. i am currently re-coding an app from FORMS to Maui.

jmadler commented 2 years ago

Yep! Now that Xamarin supports MAUI, we'll start digging into MAUI support within the next couple weeks. It will likely land after the MAUI GA unfortunately.

pierrebrito commented 2 years ago

Hi @jmadler ! When will support for Maui launch? Please don't leave this project behind. It's very important to us.

michelsoftware commented 2 years ago

Any news on Maui support?

mike242529 commented 2 years ago

We need the OneSignal Maui nuget upgrade too. Any new news or roadmap for it?

tanaynigam commented 2 years ago

We are currently working on a Xamarin OneSignal SDK release with MAUI support. Recent updates on MAUI support have pushed back our release. We should have a Xamarin OneSignal SDK update with MAUI support shortly.

ilmian commented 2 years ago

We just migrated our production app from Xamarin to Maui. OneSignal had been a great feature for us in Xamarin and now that we have used to Maui, this is the only thing holding us back from going live. Please take a look at this on priority as a lot of apps are being migrated to .Net Maui. Thanks

ZahidMehmoodquarterpi commented 2 years ago

We migrated our production app from Xamarin Forms to .Net Maui. And we are wondering from a week and half to use OneSignal with .Net Maui but so far we didn't find any luck. Please take a look to support One Signal with .Net Maui as we are not able to go live without OneSignal.

excellapay commented 1 year ago

Any update on MAUI. We created the new version of the App from scratch and made it like our Xamerin Forms version, but no luck. Any ETA?

ahmadpasha7798 commented 1 year ago

Any update? We developed the app in MAUI and One-Signal sdk plays a big part in one of its features but its on hold because of this issue. Hoping we could get an ETA? so that we could manage app release schedule accordingly.

asafgo commented 1 year ago

Hi @jmadler Any update on SDK for MAUI please?

jkasten2 commented 1 year ago

@asafgo @ahmadpasha7798 @excellapay @ZahidMehmoodquarterpi @ilmian @mike242529 @meps007007 @pierrebrito @aokocax We have released a OneSignalSDK.Xamarin 4.2.0-beta1 version you now use. https://github.com/OneSignal/OneSignal-Xamarin-SDK/releases/tag/4.2.0-beta1-maui-only

ahmadpasha7798 commented 1 year ago

@jmadler @tanaynigam @jkasten2
Thanks for the pre-release

I tried the sample code from the repository, but the OneSignal is not being resolved for android. Screenshots are attached. Screenshot (4) Screenshot (3)

pierrebrito commented 1 year ago

@jkasten2 Thanks! We look forward to it. Wouldn't it be interesting to make it available in another package? OneSignalSDK.Maui

jkasten2 commented 1 year ago

I tried the sample code from the repository, but the OneSignal is not being resolved for android. Screenshots are attached.

@ahmadpasha7798 We haven't update the sample app as part of this repo for MAUI, to test you will need to use your own project.

@jkasten2 Thanks! We look forward to it. Wouldn't it be interesting to make it available in another package? OneSignalSDK.Maui

We are planning to keep the same package name as OneSignalSDK.Xamarin for now, where the same package will support both Xamarin (.NET 5) and MAUI (.NET 6). However the 4.2.0-beta1 currently only contains MAUI while we work this out.

jrahma commented 1 year ago

Where can I find the OneSignal for MAUI setup guide?

andrei25f commented 1 year ago

Our team followed the Xamarin SDK Setup guide. We installed OneSignalSDK.Xamarin (4.2.0-beta1-maui-only) and ran into a number of errors:

It looks like the error found in the logs was the cause:

The solution was to install the Xamarin.Firebase.Messaging package (123.0.7)

fhboswell commented 1 year ago

Where can I find the OneSignal for MAUI setup guide?

Our team followed the Xamarin SDK Setup guide. We installed OneSignalSDK.Xamarin (4.2.0-beta1-maui-only) and ran into a number of errors:

  • Check for conflicting plugins and make sure "com.google.android.gms.version" is in your AndroidManifest.xml.
  • unknown error getting fcm token
  • No Push Token
  • Token retrieval failed: SERVICE_NOT_AVAILABLE. Will retry token retrieval

It looks like the error found in the logs was the cause:

  • FirebaseApp failed to initialize because no default options were found. This usually means that com.google.gms:google-services was not applied to your gradle project.

The solution was to install the Xamarin.Firebase.Messaging package (123.0.7)

@jrahma @andrei25f We are working on resolving these issues with our MAUI support.

fhboswell commented 1 year ago

@jrahma @andrei25f @pierrebrito @ahmadpasha7798 @ZahidMehmoodquarterpi @aokocax @asafgo We now have MAUI / .Net 6 support. Please see our new Nuget.

jrahma commented 1 year ago

@jrahma @andrei25f @pierrebrito @ahmadpasha7798 @ZahidMehmoodquarterpi @aokocax @asafgo We now have MAUI / .Net 6 support. Please see our new Nuget.

But you still don't have MAUI when as a Platform when creating a new Project and we just need to use Xamarin.