Giter VIP home page Giter VIP logo

Comments (6)

progress44 avatar progress44 commented on July 20, 2024 1

Hi all,

I'm testing the module on a clean app adding the following modules as well.

  • ti.ga (3.0.0)
  • ti.map (3.0.1)

The steps I took are these:

  1. Created new app
  2. Added the modules ti.ga, ti.goosh, ti.map locally to the app
  3. Added jar google-play-services-gcm+analytics+maps.jar in lib folder in ti.goosh
  4. Removed all jars from ti.ga lib folder and ti.map lib folder
  5. Removed assets/Readme from ti.goosh.jar (it's a simple zip archive)
  6. ran app

App opens. At this point I changed alloy.js to execute registerForPushNotifications() as in the documentation

Added gcm sender id

  <property name="gcm.senderid">XXXXXXXXXXXX</property>

When launching the app, in the terminal I see correctly

Notifications: device token is fno50kOLlOU:APA91bFTezbb-nqsx5LeO0mPot117GEJc3amuyPGxludPqrRBJv7QBZiMPSnMDsOyVt3jJY8GqIQn6-feqnP_B3s8rj4kYaT20gQpygVtPMi_0D1nt_lUdHj6NP3slHyx4uCfa8CDf8k

from ti.goosh.

progress44 avatar progress44 commented on July 20, 2024

Make sure the app is using the correct module version. Copy both Ti.GA and ti.goosh in your app's modules folder. In tiapp.xml specify the version along the module name for ti.goosh and ti.ga.
Let me know if this fixes the issue

from ti.goosh.

mark22 avatar mark22 commented on July 20, 2024

@progress44 I believe it is using the correct module version as the app successfully launches (it would not even launch without the gps-jars fix).

Ti.Goosh 2.0.6
Ti.GA 3.0.7

I only have 1 version of each of the modules in fact.

However, this bug or exception pops up if I try to actually call the registerforpushnotifications function.

Thanks much! Can't wait to get Ti.Goosh running

from ti.goosh.

mark22 avatar mark22 commented on July 20, 2024

Even if I delete Ti.GA altogether and run Ti.Goosh alone I have the same set of errors

from ti.goosh.

antonioduran avatar antonioduran commented on July 20, 2024

Hello. Good evening. I have the same issue also.

Does anyone know if there is a workaround for this? I have the same issue:

[ERROR] TiExceptionHandler: (main) [1297,1297] ----- Titanium Javascript Runtime Error -----
[ERROR] TiExceptionHandler: (main) [0,1297] - In /tailored.js:1557,51
[ERROR] TiExceptionHandler: (main) [0,1297] - Message: Uncaught Failed resolution of: Lcom/google/android/gms/R$string;

Thanks, and best,
Antonio

from ti.goosh.

alangumer avatar alangumer commented on July 20, 2024

Make sure to have Google Play Services APK (https://developers.google.com/android/guides/setup)

For Genymotion:
Visit opengapps.org
Select x86 as platform
Choose the Android version corresponding to your virtual device
Select nano as variant
Download the zip file
Drag & Drop the zip installer in new Genymotion virtual device (2.7.2 and above only)
Follow the pop-up instructions

from ti.goosh.

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.