glympse / enroute-xamarin-sdk Goto Github PK
View Code? Open in Web Editor NEWGlympse EnRoute SDK for Xamarin
License: MIT License
Glympse EnRoute SDK for Xamarin
License: MIT License
Hello, I'm trying to update my app's use of the EnRoute_Api_Xamarin_2.107.254 SDK to the new EnRoute_Api_MAUI_2.108.264 SDK, as part of it's Xamarin-to-MAUI migration, but am hung-up on how to properly relay Firebase Cloud Messages in this version. The app is already registered in your Firebase project with an application_id
and Firebase payloads are being delegated as expected.
With the Xamarin SDK, I do this:
public override void OnMessageReceived(RemoteMessage msg)
{
if (GlympseFCM.IsGlympseMessage(msg))
{
GlympseFCM.HandleMessage(this, msg);
return;
}
...
}
But in the new MAUI SDK, both the IsGlympseMessage(RemoteMessage message)
and HandleMessage(Context context, RemoteMessage remoteMessage)
methods don't exist on the GlympseFCM
class.
Am I missing something? How can I pass Firebase messages to the MAUI SDK? This page in the documentation suggests it should still be possible.
Any info. would be greatly appreciated, thanks!
Description:
Referencing the EnRouteApi.Android.MAUI.dll
via a <Reference>
tag in a MAUI app causes builds to fail for the Android target. I suspect this relates to the fact that:
In .NET, Java code is no longer embedded in the .dll -- MS
which differs from Xamarin.Android, and requires the .jar
/.aar
to be located next to the .dll
.
However, I expected the SDK for MAUI
, that I downloaded from here, to include all of the necessary artifacts needed to integrate Glympse EnRoute functionality into a MAUI app (targeting Android & iOS) -- which may or may not be a common use-case for other consumers.
Steps to Reproduce:
master
branchfix
branchLink to public reproduction project repository:
Version with bug:
Affected Platform(s):
Did you find any workaround?:
.aar
's in the same folder as EnRouteApi.Android.MAUI.dll
Relevant log output:
CommonSource_ListenerWrapper.java(8,39): javac.exe error JAVAC0000: error: package com.glympse.android.toolbox.listener does not exist
CommonSource_ListenerWrapper.java(9,27): javac.exe error JAVAC0000: error: package com.glympse.android.core does not exist
EventSink_ListenerWrapper.java(8,26): javac.exe error JAVAC0000: error: package com.glympse.android.api does not exist
EventSink_ListenerWrapper.java(9,27): javac.exe error JAVAC0000: error: package com.glympse.android.core does not exist
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.