Skip to content

Commit 33e503a

Browse files
committed
temp wip example app stuff
1 parent 518f3e5 commit 33e503a

File tree

9 files changed

+1070
-4
lines changed

9 files changed

+1070
-4
lines changed

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,8 @@
1919
# Java class files
2020
*.class
2121

22+
*.DS_Store
23+
2224
# generated files
2325
bin/
2426
gen/
@@ -33,3 +35,4 @@ Examples/.idea/
3335
Examples/AndroidStudio/
3436
Examples/OneSignalDemo/app/build/
3537
OneSignalSDK/app/build/
38+
Examples/demo/app/build/

Examples/OneSignalDemo/app/src/main/java/com/onesignal/sdktest/application/MainApplication.java

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,14 +39,16 @@ public class MainApplication extends MultiDexApplication {
3939

4040
public MainApplication() {
4141
// run strict mode to surface any potential issues easier
42-
StrictMode.enableDefaults();
42+
StrictMode.allowThreadDiskReads();
43+
StrictMode.allowThreadDiskWrites();
44+
4345
}
4446

4547
@SuppressLint("NewApi")
4648
@Override
4749
public void onCreate() {
4850
super.onCreate();
49-
OneSignal.getDebug().setLogLevel(LogLevel.DEBUG);
51+
OneSignal.getDebug().setLogLevel(LogLevel.VERBOSE);
5052

5153
// OneSignal Initialization
5254
String appId = SharedPreferenceUtil.getOneSignalAppId(this);

Examples/OneSignalDemo/app/src/main/java/com/onesignal/sdktest/util/SharedPreferenceUtil.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ public static boolean exists(Context context, String key) {
2424
}
2525

2626
public static String getOneSignalAppId(Context context) {
27-
return getSharedPreference(context).getString(OS_APP_ID_SHARED_PREF, "77e32082-ea27-42e3-a898-c72e141824ef");
27+
return getSharedPreference(context).getString(OS_APP_ID_SHARED_PREF, "547645cb-f35e-42ed-94e4-f04ca3cdfdea");
2828
}
2929

3030
public static boolean getUserPrivacyConsent(Context context) {

OneSignalSDK/build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ buildscript {
88
targetSdkVersion: 34,
99
minSdkVersion: 21
1010
]
11-
androidGradlePluginVersion = '8.8.2'
11+
androidGradlePluginVersion = '8.7.3'
1212
googleServicesGradlePluginVersion = '4.3.10'
1313
huaweiAgconnectVersion = '1.9.1.304'
1414
huaweiHMSPushVersion = '6.3.0.304'

customer_jwt_issues/OneSignal.txt

Lines changed: 146 additions & 0 deletions
Large diffs are not rendered by default.

customer_jwt_issues/OneSignalLogs01.txt

Lines changed: 645 additions & 0 deletions
Large diffs are not rendered by default.
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
Thanks for the quick and detailed response. But I am still facing the same issue, for multiple users
2+
3+
User A logs out from app we call OneSignal.Logout()
4+
User B logs in we call OneSignal.Login(extenalId, token)
5+
When using the same external Id when we are checking in OneSignal Dashboard Audience > Users we are getting " We couldn't find any results for 'extenalId' "
6+
When we checked in logs, we found out error "[OpRepo] Operation execution failed with invalid jwt"
7+
Also, we noticed tow external id's in the logs i.e. one for current user and another for previous user.
8+
9+
As suggested, please find the attached logs in .txt format, please let me know if any other detail is required.
51.6 KB
Binary file not shown.

customer_jwt_issues/testing_logs_1.txt

Lines changed: 261 additions & 0 deletions
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)