Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-26197] iOS: Deprecate Ti.Media.createSystemAlert, move to own "Ti.SystemAlert" module

GitHub Issuen/a
TypeImprovement
PriorityMedium
StatusClosed
ResolutionFixed
Resolution Date2018-08-16T18:14:18.000+0000
Affected Version/sn/a
Fix Version/sRelease 8.0.0
ComponentsiOS, TiAPI
Labelsparity, ti.media
ReporterChristopher Williams
AssigneeHans Knöchel
Created2018-07-10T19:48:05.000+0000
Updated2019-11-07T13:18:50.000+0000

Description

The Ti.Media.createSystemAlert and Titanium.Media.SystemAlert APIs should be looked at and determined if this should be moved out to an ios-specific namespace, deprecated, or extended to other platforms.

Comments

  1. Hans Knöchel 2018-07-12

    - Ti.SystemSound module: https://github.com/appcelerator-modules/ti.systemalert - Deprecation note in the core: https://github.com/appcelerator/titanium_mobile/pull/10177
  2. Samir Mohammed 2018-11-26

    *Closing ticket* Verified improvement in SDK version 8.0.0.v20181121114345. Able to get the deprecation message when not using the Ti.SystemAlert module. And when using the module no deprecation message is shown and sound is played without any issues. *Test Steps:*

    Created a new application with the following code

       var player = Ti.Media.createSystemAlert({url:"alert.wav"});
       player.play();
       

    Added a .wav file int the resources directory

    Ran the program and got the following deprecation message (sound still played)

       [WARN] :   The iOS-only SystemAlert API has been deprecated and moved to an external module in 8.0.0.
       [WARN] :   It will be removed from the core in the future, please migrate!
       

    Now downloaded the ti.systemalert module

    Changed the code in the application to

       var SystemAlert = require('ti.systemalert');
       
       var mySystemAlert = SystemAlert.createSystemAlert({
           url: 'alert.wav'
       });
       mySystemAlert.play();
       

    Sound played without any issue and no warning messages were shown

    *Test Environment*
       APPC Studio: 5.1.0.201808080937
       iPhone 7 Sim (iOS 12.1)
       APPC CLI: 7.0.8-5
       Operating System Name: Mac OS Mojave
       Operating System Version: 10.14.1
       Node.js Version: 8.9.1
       Xcode 10.1
       
  3. Marian Kucharcik 2019-11-06

    Hi guys, github gives me E404 on this url: https://github.com/appcelerator-modules/ti.systemalert Is any chance to correct url to make it available again? Same url is posted in Docs: https://docs.appcelerator.com/platform/latest/#!/api/Titanium.Media.SystemAlert Thanks
  4. Joshua Quick 2019-11-06

    [~max87], sorry about that. The repo was private. We just made it public now.
  5. Marian Kucharcik 2019-11-07

    Thanks Joshua, it's working now...

JSON Source