telenordigital / connect-ios-sdk

Docs 📒👉
https://telenordigital.github.io/id-docs.telenordigital.com/integrate-ios-sdk.html
Apache License 2.0
9 stars 8 forks source link

crash on 32bit devices #48

Closed Jack25apr closed 6 years ago

Jack25apr commented 6 years ago

OAuth2Module.swift: all vars such:

var tsSdkInitiliazation: NSInteger?
var tsLoginButtonClicked: NSInteger?
var tsRedirectUrlInvoked: NSInteger?
var tsTokenResponseReceived: NSInteger?

should not be NSInteger, but Int64? because later on: NSInteger(NSDate().timeIntervalSince1970 * 1000); it crashes.

please use

var tsSdkInitiliazation: Int64?
var tsLoginButtonClicked: Int64?
var tsRedirectUrlInvoked: Int64?
var tsTokenResponseReceived: Int64?

and later on in assignments:

= Int64(NSDate().timeIntervalSince1970 * 1000);

(You can easily reproduce with HelloWorld Project : Download simulator iOS 9.3, restart mac and use 4s simulator as run destination)