azure-sdk-for-android icon indicating copy to clipboard operation
azure-sdk-for-android copied to clipboard

[FEATURE REQ] Add AndroidThreeTen.init(this) to documentation

Open JasonWeinzierl opened this issue 1 year ago • 0 comments

Is your feature request related to a problem? Please describe.

After some debugging of crashes while using the azure-communication-calling library, it appears that we need to add AndroidThreeTen.init(this); to our MainApplication.onCreate.

Should this be documented in Microsoft guides for calling and/or other ACS libraries? Is com.jakewharton.threetenabp:threetenabp an intentional dependency that users need to be made aware of?

Describe the solution you'd like

Clear documentation on steps when installing ACS libraries.

Describe alternatives you've considered

Trial and error

Additional context

org.threeten.bp.zone.ZoneRulesException: No time-zone data files registered
	at org.threeten.bp.zone.ZoneRulesProvider.getProvider(ZoneRulesProvider.java:165)
	at org.threeten.bp.zone.ZoneRulesProvider.getRules(ZoneRulesProvider.java:122)
	at org.threeten.bp.ZoneRegion.ofId(ZoneRegion.java:143)
	at org.threeten.bp.ZoneId.of(ZoneId.java:358)
	at org.threeten.bp.ZoneId.of(ZoneId.java:286)
	at org.threeten.bp.ZoneId.systemDefault(ZoneId.java:245)
	at org.threeten.bp.Clock.systemDefaultZone(Clock.java:137)
	at org.threeten.bp.OffsetDateTime.now(OffsetDateTime.java:175)
	at com.azure.android.communication.common.CommunicationAccessToken.isExpired(CommunicationAccessToken.java:42)
	at com.azure.android.communication.common.AutoRefreshUserCredential.scheduleTokenFutureUpdate(AutoRefreshUserCredential.java:115)
	at com.azure.android.communication.common.AutoRefreshUserCredential.<init>(AutoRefreshUserCredential.java:39)
	at com.azure.android.communication.common.CommunicationTokenCredential.<init>(CommunicationTokenCredential.java:49)

Information Checklist Kindly make sure that you have added all the following information above and checkoff the required fields otherwise we will treat the issuer as an incomplete report

  • [x] Description Added
  • [x] Expected solution specified

JasonWeinzierl avatar Jul 06 '23 21:07 JasonWeinzierl