Titanium Android - Bug in the sample code

Comments

4 comments

  • Avatar
    Fukhaos

    I think it's a bug, I receive: [INFO] : GCMIntentService: Received message

    but the callback never execute

    I try with the last module in Github, but with the previous still don't working.

  • Avatar
    Shmakov

    Hello,

    It seems that actually there is a gap in our guide, which we will certainly fix in the nearest future. Thank you for pointing it out!

    Please try to add the following code in android -> manifest -> application tag

        <activity
            android:name=".APP-NAMEActivity"
            android:label="activity_label"
            android:theme="@style/Theme.Titanium"
            android:launchMode="singleTop"
            android:configChanges="keyboardHidden|orientation">
            <intent-filter>
                <action android:name="APP-ID.MESSAGE" />
                <category android:name="android.intent.category.DEFAULT" />
            </intent-filter>
            <intent-filter>
                <action android:name="android.intent.action.MAIN" />
                <category android:name="android.intent.category.LAUNCHER" />
            </intent-filter>
        </activity>

    Please note that you should replace APP-NAME and APP-ID with the value of tag <name> and <id> respectively.

    If it doesn't help, please contact our Support team via Contact us form on our website.

  • Avatar
    Univers3

    The problem with the last correction is that the notification disappear when received. My android phone, receive the notification, display it and remove it immediately!

    Update: Of course this happen only when the app is running. If I set a link to open while the app is running the notification disappear immediately. Is there a method to keep it in the status bar?

  • Avatar
    Pbarnwal

    Hi, Did you solve your problem. Even i also want to keep alive the notification till i user doesn't click or remove from notification.

Please sign in to leave a comment.