Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

OneSignal MAUI Support for Push Notification #281

Closed
aokocax opened this issue Mar 21, 2022 · 20 comments
Closed

OneSignal MAUI Support for Push Notification #281

aokocax opened this issue Mar 21, 2022 · 20 comments

Comments

@aokocax
Copy link

aokocax commented Mar 21, 2022

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
Copy link

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

@jmadler
Copy link
Contributor

jmadler commented May 13, 2022

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
Copy link

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

@michelsoftware
Copy link

Any news on Maui support?

@mike242529
Copy link

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

@tanaynigam
Copy link
Contributor

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
Copy link

ilmian commented Jul 4, 2022

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
Copy link

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
Copy link

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
Copy link

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
Copy link

asafgo commented Aug 4, 2022

Hi @jmadler
Any update on SDK for MAUI please?

@jkasten2
Copy link
Member

jkasten2 commented Aug 5, 2022

@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
Copy link

ahmadpasha7798 commented Aug 5, 2022

@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
Copy link

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

@jkasten2
Copy link
Member

jkasten2 commented Aug 5, 2022

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
Copy link

jrahma commented Aug 18, 2022

Where can I find the OneSignal for MAUI setup guide?

@andrei25f
Copy link

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)

@fhboswell
Copy link

fhboswell commented Sep 9, 2022

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
Copy link

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

@jrahma
Copy link

jrahma commented Nov 18, 2022

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests