Giter VIP home page Giter VIP logo

Comments (9)

progress44 avatar progress44 commented on June 21, 2024

Can you try upgrading both Titanium SDK to 6.0.0.GA and ti.goosh to version 2.0? We may have fixed the problem in this version. If it persists let us know and we'll look at it thoroughly

from ti.goosh.

argum avatar argum commented on June 21, 2024

Hello progress44, thanks for your response.

I have updated my SDK to 6.0.1 and also the ti.goosh library to the 2.0.0. The same problem happens.

Just a note, my phone has the Google Play Services 10.0.84 but, every time I compile the app with ti.goosh, i read the following error on the console:

[ERROR] : GooglePlayServicesUtil: The Google Play services resources were not found. Check your project configuration to ensure that the resources are included.

This may be related to the main issue?

Also, when I use other code (Ti.cloudpush ... ) when i close the app and send a push notification throught ACS API, the notification is not received but i get the next message in the console:

[WARN] : W/GCM-DMM (22054): broadcast intent callback: result=CANCELLED forIntent { act=com.google.android.c2dm.intent.RECEIVE pkg=d2app.idisc.es (has extras) }

I do not receive this warning in ti.goosh code but I think that the problem is the same.

I have also, with ti.cloudpush, receive the "GooglePlayServicesUtil: The Google Play services resources were not found..."

This does not happens with all devices, but in some yes. A device which this behaviour happens is a Huawei P9 (marshmallow 6.0.0), a device which does not happens is a BQ Aquaris E5 (Android 5.0.0)

Anyone can help me to solve it? Thanks!

from ti.goosh.

progress44 avatar progress44 commented on June 21, 2024

I'll work on the module next week and I'll test this behaviour although I'm guessing it may be a permissions limit on the OS side. Try checking the settings and see if there are any particular permissions you need to enable for the app.

from ti.goosh.

argum avatar argum commented on June 21, 2024

Right now I have tested the same code, same SDK (6.0.0) same ti.goosh version (2.0.0) in a Samsung Galaxy S7 Edge and everything works as expected. The push notification is received when the app is closed, opened or in the background.

But I have also received the error: GooglePlayServicesUtil: The Google Play services resources were not found. Check your project configuration to ensure that the resources are included.

Like the other device Huawei P9.

Thanks progress44 for your quick response and awesome job. If you need more info, please tell me and I will send you as many info you need. Thanks!

from ti.goosh.

progress44 avatar progress44 commented on June 21, 2024

You can ignore the error message GooglePlayServicesUtil: The Google Play services resources were not found. Check your project configuration to ensure that the resources are included. It doesn't necessarily mean they're not found :)

from ti.goosh.

argum avatar argum commented on June 21, 2024

For the record, this is the config I can change in my phone related to push notifications for each app "FCM" app is this app.

Best Regards!

screenshot_2017-01-26-10-38-08

from ti.goosh.

progress44 avatar progress44 commented on June 21, 2024

Thanks! We'll look into it.

from ti.goosh.

argum avatar argum commented on June 21, 2024

Hello Progress44, late yesterday my customer send a example list of a devices which didn't receive a push notification. Most of the devices are Huawei. I google it and I found several articles with this error.

Huawei has a option called "Protected Apps". If an app is not a protected app, when the app is closed, Huawei closes the listener for this app and the notification is rejected by the phone. So, when i put my app to a protected app, the push notification was received even the app is closed.

http://www.androidheadlines.com/2016/01/how-to-fix-missing-notifications-on-huawei-phones.html

Thanks for your big support! I will test it a little more and find a way to integrate it with ti.map and other modules I need for my app.

Thanks again!

Best Regards,

Pau.

from ti.goosh.

progress44 avatar progress44 commented on June 21, 2024

@argum Thanks for letting us know of this. It's really helpful to us as well. In the repo you can find out how to make it work with ti.map as well.
Ani

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.