Integrate Daily Notification Plugin #214
2
package-lock.json
generated
2
package-lock.json
generated
@@ -152,7 +152,7 @@
|
||||
},
|
||||
"../daily-notification-plugin": {
|
||||
"name": "@timesafari/daily-notification-plugin",
|
||||
"version": "1.0.8",
|
||||
"version": "1.0.11",
|
||||
"license": "MIT",
|
||||
"workspaces": [
|
||||
"packages/*"
|
||||
|
||||
@@ -1716,11 +1716,34 @@ export class CapacitorPlatformService
|
||||
jwtToken,
|
||||
});
|
||||
|
||||
// Step 5: Update starred plans if provided
|
||||
// This stores the starred plan IDs in SharedPreferences for the native fetcher
|
||||
if (
|
||||
config.starredPlanHandleIds &&
|
||||
config.starredPlanHandleIds.length > 0
|
||||
) {
|
||||
await DailyNotification.updateStarredPlans({
|
||||
planIds: config.starredPlanHandleIds,
|
||||
});
|
||||
logger.info(
|
||||
`[CapacitorPlatformService] Updated starred plans: ${config.starredPlanHandleIds.length} plans`,
|
||||
);
|
||||
} else {
|
||||
// Clear starred plans if none provided
|
||||
await DailyNotification.updateStarredPlans({
|
||||
planIds: [],
|
||||
});
|
||||
logger.info(
|
||||
"[CapacitorPlatformService] Cleared starred plans (none provided)",
|
||||
);
|
||||
}
|
||||
|
||||
logger.info("[CapacitorPlatformService] Configured native fetcher", {
|
||||
activeDid,
|
||||
apiServer,
|
||||
tokenExpirationHours: 72,
|
||||
tokenExpirationMinutes: expirationMinutes,
|
||||
starredPlansCount: config.starredPlanHandleIds?.length || 0,
|
||||
});
|
||||
} catch (error) {
|
||||
logger.error(
|
||||
|
||||
Reference in New Issue
Block a user