[TIMOB-25048] TiAPI: Android/iOS "ApplicationShortcuts" parity
GitHub Issue | n/a |
---|---|
Type | New Feature |
Priority | Medium |
Status | Closed |
Resolution | Fixed |
Resolution Date | 2018-10-29T23:25:59.000+0000 |
Affected Version/s | n/a |
Fix Version/s | Release 7.5.0 |
Components | Android, iOS |
Labels | demo_app |
Reporter | Gary Mathews |
Assignee | Gary Mathews |
Created | 2017-08-01T15:49:45.000+0000 |
Updated | 2019-02-11T22:50:17.000+0000 |
Description
{quote}
If your app targets Android 7.1 (API level 25) or higher, you can define shortcuts to specific actions in your app. These shortcuts can be displayed in a supported launcher. Shortcuts let your users quickly start common or recommended tasks within your app.
{quote}
- Expose the
setDynamicShortcut
API from the ShortcutManager
[Documentation](https://developer.android.com/guide/topics/ui/shortcuts.html)
Existing iOS-equivalent: http://docs.appcelerator.com/platform/latest/#!/api/Titanium.UI.iOS.ApplicationShortcuts We can move it to the Ti.UI namespace for parity.
master: https://github.com/appcelerator/titanium_mobile/pull/9426
iOS-PR: https://github.com/appcelerator/titanium_mobile/pull/9744 Requires the Android PR to adopt the existing iOS docs first and add the Android-specific behaviors. iOS-changes: - Move from Ti.UI.iOS to Ti.UI namespace - Rename
itemtype
toidentifier
- Deprecate API on Ti.UI.iOS namespace, throw deprecation log when using the old one.FR Passed. PR's Merged.
Verified the fix on SDK 7.5.0.v20181017114133. Application shortcuts works fine on android 7.1 and above. also on ios getting proper depreciation message when using Ti.UI.iOS.ApplicationShortcuts.