Starting from version 2.1, the SDK allows to choose between multiple ID providers. Currently supported providers are CONNECT ID and Telenor ID. If you are updating to version 2.1 from older versions without any code change - CONNECT ID will be used as a default ID provider.
When initializing the SDK, you must select an ID provider that was decided for your country. You should use the
IdProvider class for that purpose.
You cannot use multiple ID providers at the same time. Our infrastructure allows only for one ID provider to be used in each country, which means that all clients in one country need to use the same provider. Currently supported providers are CONNECT ID and Telenor ID. During the fall, CONNECT ID will be disabled for all countries except Norway.
ConnectSdk.sdkInitialize(getApplicationContext(), IdProvider.TELENOR_ID, true);
While using Telenor ID as an ID provider, we require you to follow a new style guideline. You have to use
@style/ConnectTheme.TelenorId as a default style for
The full minimum code for the button will look like this:
<com.telenor.connect.ui.ConnectLoginButton android:id="@+id/login_button" android:layout_width="wrap_content" android:layout_height="wrap_content" android:theme="@style/ConnectTheme.TelenorId" />
You can try it out in the example application.
What is Telenor ID page, is a link below the sign-in button on the client’s sign-in page. Through user research, we have found that this link is important to include to explain to the users what Telenor ID is and why they need to use it to sign in to your app.
Starting from version 2.1, the SDK adds a new view component for displaying the description about Telenor ID. To enable it, use
com.telenor.connect.ui.ConnectAboutTextView in your layout files.