Skip to content
Toggle navigation
Toggle navigation
This project
Loading...
Sign in
ethan
/
appframe
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Network
Compare
Branches
Tags
Commit 800d6117
authored
2026-02-05 18:13:05 +0800
by
Administrator
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
苹果离线推送的集成通过
1 parent
fc0999ba
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
13 additions
and
13 deletions
ios/Runner/Base.lproj/Info.plist
ios/Runner/Info.plist
ios/Runner/en.lproj/Info.plist
ios/Runner/zh-Hans.lproj/Info.plist
lib/services/im_service.dart
ios/Runner/Base.lproj/Info.plist
View file @
800d611
...
...
@@ -97,10 +97,10 @@
<string>
_dartvm._tcp
</string>
<string>
_dartobservatory._tcp
</string>
</array>
<
!-- <
key>UIBackgroundModes</key>
<key>
UIBackgroundModes
</key>
<array>
<string>
audio
</string>
</array>
-->
<string>
remote-notification
</string>
</array>
<key>
UIViewControllerBasedStatusBarAppearance
</key>
<true/>
</dict>
...
...
ios/Runner/Info.plist
View file @
800d611
...
...
@@ -97,10 +97,10 @@
<string>
_dartvm._tcp
</string>
<string>
_dartobservatory._tcp
</string>
</array>
<
!-- <
key>UIBackgroundModes</key>
<key>
UIBackgroundModes
</key>
<array>
<string>
audio
</string>
</array>
-->
<string>
remote-notification
</string>
</array>
<key>
UIViewControllerBasedStatusBarAppearance
</key>
<true/>
...
...
ios/Runner/en.lproj/Info.plist
View file @
800d611
...
...
@@ -98,10 +98,10 @@
<!-- 对于更新的Flutter版本,有时还需要添加以下行 -->
<string>
_dartobservatory._tcp
</string>
</array>
<
!-- <
key>UIBackgroundModes</key>
<key>
UIBackgroundModes
</key>
<array>
<string>
audio
</string>
</array>
-->
<string>
remote-notification
</string>
</array>
<key>
UIViewControllerBasedStatusBarAppearance
</key>
<true/>
</dict>
...
...
ios/Runner/zh-Hans.lproj/Info.plist
View file @
800d611
...
...
@@ -98,10 +98,10 @@
<!-- 对于更新的Flutter版本,有时还需要添加以下行 -->
<string>
_dartobservatory._tcp
</string>
</array>
<
!-- <
key>UIBackgroundModes</key>
<key>
UIBackgroundModes
</key>
<array>
<string>
audio
</string>
</array>
-->
<string>
remote-notification
</string>
</array>
<key>
UIViewControllerBasedStatusBarAppearance
</key>
<true/>
</dict>
...
...
lib/services/im_service.dart
View file @
800d611
...
...
@@ -374,7 +374,7 @@ class ImService {
onNotificationClicked:
_onNotificationClicked
,
sdkAppId:
Constant
.
imSdkAppId
,
appKey:
Constant
.
imClientSecure
,
apnsCertificateID:
47
799
,
apnsCertificateID:
47
801
,
);
if
(
res
.
code
==
0
)
{
debugPrint
(
'注册推送成功--------'
);
...
...
Write
Preview
Styling with
Markdown
is supported
Attach a file
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 post a comment