[TIMOB-3475] Implement Receivers for Android
GitHub Issue | n/a |
---|---|
Type | New Feature |
Priority | Low |
Status | Closed |
Resolution | Done |
Resolution Date | 2020-03-11T02:52:24.000+0000 |
Affected Version/s | n/a |
Fix Version/s | n/a |
Components | Android |
Labels | android, feature, manifest, rplist, tbs-1.8.0 |
Reporter | Alan Leard |
Assignee | Eric Merriman |
Created | 2011-04-15T03:45:40.000+0000 |
Updated | 2020-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
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.
ACTION_NEW_OUTGOING_CALL
Associated Helpdesk Ticket
http://appc.me/c/APP-629429We've added
BroadcastReceiver
support as of Titanium 3.1.0. http://docs.appcelerator.com/platform/latest/#!/api/Titanium.Android.BroadcastReceiver However, aBOOT_COMPLETED
receiver cannot be implemented via JavaScript since Titanium's JS runtime is tightly bound to the UI. ABOOT_COMPLETED
receiver must be implemented natively via a module.