Notifikasi terhubung ke DB

Add:
- components/Notification/
- hooks/use-notification-store.tsx.back

Fix:
- app.config.js
- app/(application)/(user)/_layout.tsx
- app/(application)/(user)/home.tsx
- app/(application)/(user)/test-notifications.tsx
- app/(application)/_layout.tsx
- app/_layout.tsx
- components/_Icon/IconComponent.tsx
- components/_Icon/IconPlus.tsx
- components/_ShareComponent/NotificationInitializer.tsx
- context/AuthContext.tsx
- hooks/use-notification-store.tsx
- ios/HIPMIBadungConnect/Info.plist
- screens/Home/HeaderBell.tsx
- service/api-device-token.ts
- service/api-notifications.ts

### No Issue
This commit is contained in:
2025-12-19 17:54:49 +08:00
parent a01a9bd93f
commit 1503707eed
16 changed files with 352 additions and 97 deletions

View File

@@ -18,10 +18,7 @@ export async function apiDeviceRegisterToken({
const response = await apiConfig.post(`/mobile/auth/device-tokens`, {
data: data,
});
console.log(
"Device token registered:",
JSON.stringify(response.data, null, 2)
);
return response.data;
} catch (error) {
console.error("Failed to register device token:", error);