OneSignal-Xamarin-SDK icon indicating copy to clipboard operation
OneSignal-Xamarin-SDK copied to clipboard

OneSignal MAUI Support for Push Notification

Open aokocax opened this issue 2 years ago • 18 comments

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.

aokocax avatar Mar 21 '22 12:03 aokocax

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

excellapay avatar May 13 '22 00:05 excellapay

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.

jmadler avatar May 13 '22 01:05 jmadler

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

pierrebrito avatar Jun 02 '22 14:06 pierrebrito

Any news on Maui support?

michelsoftware avatar Jun 18 '22 09:06 michelsoftware

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

mike242529 avatar Jun 29 '22 15:06 mike242529

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.

tanaynigam avatar Jun 29 '22 20:06 tanaynigam

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

ilmian avatar Jul 04 '22 04:07 ilmian

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.

ZahidMehmoodquarterpi avatar Jul 04 '22 04:07 ZahidMehmoodquarterpi

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?

excellapay avatar Jul 21 '22 01:07 excellapay

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.

ahmadpasha7798 avatar Jul 28 '22 06:07 ahmadpasha7798

Hi @jmadler Any update on SDK for MAUI please?

asafgo avatar Aug 04 '22 06:08 asafgo

@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

jkasten2 avatar Aug 05 '22 09:08 jkasten2

@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)

ahmadpasha7798 avatar Aug 05 '22 11:08 ahmadpasha7798

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

pierrebrito avatar Aug 05 '22 13:08 pierrebrito

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.

jkasten2 avatar Aug 05 '22 20:08 jkasten2

Where can I find the OneSignal for MAUI setup guide?

jrahma avatar Aug 18 '22 19:08 jrahma

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)

andrei25f avatar Sep 06 '22 06:09 andrei25f

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 avatar Sep 09 '22 22:09 fhboswell

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

fhboswell avatar Nov 02 '22 18:11 fhboswell

@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.

jrahma avatar Nov 18 '22 22:11 jrahma