Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
Sai Srinivas
Pulse Application
Commits
bc8967fb
Commit
bc8967fb
authored
Oct 13, 2025
by
Sai Srinivas
Browse files
ios login fix
parent
1c3f5cbb
Changes
2
Show whitespace changes
Inline
Side-by-side
lib/Notifier/ProfileProvider.dart
View file @
bc8967fb
import
'dart:io'
;
import
'package:firebase_messaging/firebase_messaging.dart'
;
import
'package:flutter/foundation.dart'
;
import
'package:flutter/material.dart'
;
...
...
@@ -40,7 +42,12 @@ class ProfileProvider extends ChangeNotifier {
_errorMessage
=
null
;
_profileResponse
=
null
;
notifyListeners
();
String
?
fcmToken
=
await
FirebaseMessaging
.
instance
.
getToken
();
String
?
fcmToken
;
if
(
Platform
.
isAndroid
)
{
fcmToken
=
await
FirebaseMessaging
.
instance
.
getToken
();
}
else
if
(
Platform
.
isIOS
)
{
fcmToken
=
await
FirebaseMessaging
.
instance
.
getAPNSToken
();
}
final
data
=
await
ApiService
.
fetchProfile
(
csrfToken:
csrfToken
,
sessionId:
sessionId
,
...
...
lib/Screens/home_screen.dart
View file @
bc8967fb
...
...
@@ -513,9 +513,9 @@ class _HomeScreenState extends State<HomeScreen> {
?
widget
.
notificationUrl
!
:
"https://pulse.webgrid.in/app/authentication/web_erp?staff_id=
${widget.staffId}
&session_id=
${widget.sessionId}
"
,
),
headers:
{
"Cookie"
:
"session_id=
${widget.sessionId}
"
,
},
//
headers: {
//
"Cookie": "session_id=${widget.sessionId}",
//
},
allowsCellularAccess:
true
,
allowsConstrainedNetworkAccess:
true
,
allowsExpensiveNetworkAccess:
true
,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment