Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-3475] Implement Receivers for Android

GitHub Issuen/a
TypeNew Feature
PriorityLow
StatusClosed
ResolutionDone
Resolution Date2020-03-11T02:52:24.000+0000
Affected Version/sn/a
Fix Version/sn/a
ComponentsAndroid
Labelsandroid, feature, manifest, rplist, tbs-1.8.0
ReporterAlan Leard
AssigneeEric Merriman
Created2011-04-15T03:45:40.000+0000
Updated2020-03-11T02:52:24.000+0000

Description

Feature Request

Customers would like to implement ACTION_BOOT_COMPLETED for their app which requires receivers in the AndroidManifest.xml. Specifically .OnBootReceiverService.

Test Code

<receiver android:name=".OnBootReceiverService"  android:enabled="true"  android:exported="false"  android:label="OnBootReceiverService">
<intent-filter>
        <action android:name="android.intent.action.BOOT_COMPLETED"/>
    </intent-filter>
</receiver>
<uses-permission android:name="android.permission.RECEIVE_BOOT_COMPLETED"/>

Reference Ticket

http://support-admin.appcelerator.com/display/BGH-23646-644">http://support-admin.appcelerator.com/display/BGH-23646-644

Comments

  1. Don Thorp 2011-04-15

    If they do a hybrid app and provide a java class as the boot receiver that then fires an intent to their Titanium app, they should be able to do this now.

  2. Jon Alter 2011-05-20

    ACTION_NEW_OUTGOING_CALL

    Associated Helpdesk Ticket

    http://appc.me/c/APP-629429
  3. Joshua Quick 2020-03-11

    We've added BroadcastReceiver support as of Titanium 3.1.0. http://docs.appcelerator.com/platform/latest/#!/api/Titanium.Android.BroadcastReceiver However, a BOOT_COMPLETED receiver cannot be implemented via JavaScript since Titanium's JS runtime is tightly bound to the UI. A BOOT_COMPLETED receiver must be implemented natively via a module.

JSON Source