Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-27175] iOS: Ti.Platform.id changes when updating to SDK 8.0.0

GitHub Issuen/a
TypeBug
PriorityCritical
StatusClosed
ResolutionFixed
Resolution Date2019-07-01T18:25:20.000+0000
Affected Version/sRelease 8.0.0
Fix Version/sRelease 8.1.0
ComponentsiOS
LabelsengSchedule, regression
ReporterJan Vennemann
AssigneeJan Vennemann
Created2019-06-20T15:32:11.000+0000
Updated2019-07-05T20:39:00.000+0000

Description

*Steps to reproduce the behavior*

Create a new classic app

Add console.log(Ti.Platform.id);

Build and run the app using SDK 7.5.1.GA

Note the identifier printed to the log

Build and run the app again using SDK 8.0.0.GA

Note the identifier printed to the log

*Actual behavior* Two different identifiers are logged *Expected behavior* The same identifier is logged

Comments

  1. Jan Vennemann 2019-06-21

    There is a workaround to get the old value:
       Ti.App.Properties.getString(com.${Ti.App.name.replace(/[-\W]/g, '_')}.uuid)
       
  2. Jan Vennemann 2019-06-24

    PR (master): https://github.com/appcelerator/titanium_mobile/pull/10992 PR (8_1_X): https://github.com/appcelerator/titanium_mobile/pull/10993
  3. Samir Mohammed 2019-06-26

    FR Passed, waiting on Jenkins builds.
  4. Keerthi Mahalingam 2019-07-01

    Verified the Fix on sdk 8.2.0.v20190628101943 and 8.1.0.v20190701081818. Ti.Platform.id value remains the same with different sdks. Works as expected. Closing.
       Operating System
         Name                        = Mac OS X
         Version                     = 10.14.5
         Architecture                = 64bit
         # CPUs                      = 12
         Memory                      = 17179869184
       Node.js
         Node.js Version             = 10.13.0
         npm Version                 = 6.4.1
       Titanium CLI
         CLI Version                 = 5.1.1
       Titanium SDK
         SDK Version                 = 8.2.0.v20190628101943
         Device = iPhone X iOS 11
       Simulator iPhone XR iOS 12
       Cli =7.0.12
       
  5. Nikita Radaev 2019-07-05

    Hi Jan, Can you please comment on when exactly the fix will be available in RC? We are planning a release soon and this directly affects our data integrity. I am wondering if we will be able to upgrade to fixed SDK version prior to release. Thank you, N.

JSON Source