Git Product home page Git Product logo

Comments (14)

progress44 avatar progress44 commented on May 25, 2024

Hi @necrocyber
Can you provide the code to how you are registering for push notifications using the module?

from ti.goosh.

necrocyber avatar necrocyber commented on May 25, 2024

Hi.
I am using the same example available.

`TiGoosh.registerForPushNotifications({
// The callback to invoke when a notification arrives.
callback: function(e) {
var data = JSON.parse(e.data || '');
console.log(e);
},
// The callback invoked when you have the device token.
success: function(e) {
// Send the e.deviceToken variable to your PUSH server
Ti.API.log('Notifications: device token is ' + e.deviceToken);
token = e.deviceToken;
},
// The callback invoked on some errors.
error: function(err) {
Ti.API.error('Notifications: Retrieve device token failed', err);
}
});

from ti.goosh.

progress44 avatar progress44 commented on May 25, 2024

Do you see 'Notifications: device token is ' + e.deviceToken in the logs?

from ti.goosh.

necrocyber avatar necrocyber commented on May 25, 2024

Hi.
I am using the same example available.

from ti.goosh.

necrocyber avatar necrocyber commented on May 25, 2024

If there has been no problems and showed me the token console

from ti.goosh.

progress44 avatar progress44 commented on May 25, 2024

@necrocyber was the app closed, in background or open when you sent the push notification?

from ti.goosh.

necrocyber avatar necrocyber commented on May 25, 2024

When the app is open, console shows me the error mentioned. When the app is running in the background or simply closed, do not run the callBack.

from ti.goosh.

necrocyber avatar necrocyber commented on May 25, 2024

Now ... I realized that when I register the device in GCM shows me the token console, but also throws the following error

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

from ti.goosh.

kopiro avatar kopiro commented on May 25, 2024

That's normal.

Could you paste your adb logcat | grep Goosh

from ti.goosh.

necrocyber avatar necrocyber commented on May 25, 2024

What is the purpose of delivering that kind of log?

from ti.goosh.

kopiro avatar kopiro commented on May 25, 2024

To debug it?

from ti.goosh.

necrocyber avatar necrocyber commented on May 25, 2024

This is correct?

<application android:theme="@style/materialTheme"> <activity android:configChanges="keyboardHidden|orientation" android:name="org.appcelerator.titanium.TiActivity" android:screenOrientation="portrait"/> <activity android:name="android.hardware.Camera" android:screenOrientation="portrait"/> <meta-data android:name="com.google.android.gms.version" android:value="@integer/google_play_services_version"/> </application>

from ti.goosh.

necrocyber avatar necrocyber commented on May 25, 2024

I work with version 1.5, api Ti.5.2.2

from ti.goosh.

necrocyber avatar necrocyber commented on May 25, 2024

I do not understand why, but now is working and not run changes in settings

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.