Giter VIP home page Giter VIP logo

Comments (10)

alex-dorokhov avatar alex-dorokhov commented on May 30, 2024

I guess, the Firebase Robopod is not deployed to maven repo yet. For now you have to clone robopods github repo and install artifacts locally, like so:

cd robovm-robopods
mvn3 install -pl firebase/ios-messaging -am

Then you have to use version 2.2.2-SNAPSHOT for ios-messaging artifact in you project (instead of 2.2.1).

EDIT: or just try to use 2.2.2-SNAPSHOT right away without cloning the github repo locally (could be it works)

from robovm-robopods.

irina88 avatar irina88 commented on May 30, 2024

Will do that, thank you!

from robovm-robopods.

irina88 avatar irina88 commented on May 30, 2024

Tried using 2.2.2-SNAPSHOT and it's not working.

from robovm-robopods.

irina88 avatar irina88 commented on May 30, 2024

Also setting a UNUserNotificationCenterDelegate for the currrentNotificationCenter yields a runtime error:
"java.lang.ClassCastException: cannot be cast to org.robovm.objc.ObjCObject"

Update:
I've created my own delegate extending NSObject and it works.

from robovm-robopods.

alex-dorokhov avatar alex-dorokhov commented on May 30, 2024

That's right, you have to use NSObject as a base class for delegates. Sometimes (especially in robopods' bindings) there are *DelegateAdapter classes, which are inherited from NSObject for you.

So didn't you able to get rid of the original failure via installing the messaging robopod into the local maven repo (using the solution I had provided originally)?

from robovm-robopods.

irina88 avatar irina88 commented on May 30, 2024

No, I've added the files manually to my project. And now I'm fighting the errors as they come.
The current one is a failure to register for remote notifications:
"didFailToRegisterForRemoteNotifications Error Domain=NSCocoaErrorDomain Code=3000 "no valid 'aps-environment' entitlement string found for application" UserInfo={NSLocalizedDescription=no valid 'aps-environment' entitlement string found for application}"

from robovm-robopods.

irina88 avatar irina88 commented on May 30, 2024

Managed to make it work. It just needed the entitlements.plist file with the push notifications capability enabled.

from robovm-robopods.

keesvandieren avatar keesvandieren commented on May 30, 2024

Can this issue be closed now?

from robovm-robopods.

irina88 avatar irina88 commented on May 30, 2024

from robovm-robopods.

keesvandieren avatar keesvandieren commented on May 30, 2024

@piotrros, @Tom-Ski please close

from robovm-robopods.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.