Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
S
Sailassist
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
54
Merge Requests
54
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
gr-ssv
Sailassist
Commits
c9d4c353
Commit
c9d4c353
authored
Jan 22, 2024
by
shigemi miura
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
通知処理変更
parent
b2e27f3d
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
7 deletions
+7
-7
project.pbxproj
Seilassist/Sailassist.xcodeproj/project.pbxproj
+3
-3
SailassistApp.swift
Seilassist/Sailassist/SailassistApp.swift
+4
-4
No files found.
Seilassist/Sailassist.xcodeproj/project.pbxproj
View file @
c9d4c353
...
@@ -1218,7 +1218,7 @@
...
@@ -1218,7 +1218,7 @@
CODE_SIGN_ENTITLEMENTS
=
Sailassist/Sailassist.entitlements
;
CODE_SIGN_ENTITLEMENTS
=
Sailassist/Sailassist.entitlements
;
CODE_SIGN_IDENTITY
=
"Apple Development"
;
CODE_SIGN_IDENTITY
=
"Apple Development"
;
CODE_SIGN_STYLE
=
Automatic
;
CODE_SIGN_STYLE
=
Automatic
;
CURRENT_PROJECT_VERSION
=
1
0
;
CURRENT_PROJECT_VERSION
=
1
2
;
DEVELOPMENT_ASSET_PATHS
=
"\"Sailassist/Preview Content\""
;
DEVELOPMENT_ASSET_PATHS
=
"\"Sailassist/Preview Content\""
;
DEVELOPMENT_TEAM
=
D2DC7QNNJ8
;
DEVELOPMENT_TEAM
=
D2DC7QNNJ8
;
ENABLE_PREVIEWS
=
YES
;
ENABLE_PREVIEWS
=
YES
;
...
@@ -1264,7 +1264,7 @@
...
@@ -1264,7 +1264,7 @@
ASSETCATALOG_COMPILER_GLOBAL_ACCENT_COLOR_NAME
=
AccentColor
;
ASSETCATALOG_COMPILER_GLOBAL_ACCENT_COLOR_NAME
=
AccentColor
;
CODE_SIGN_ENTITLEMENTS
=
Sailassist/Sailassist.entitlements
;
CODE_SIGN_ENTITLEMENTS
=
Sailassist/Sailassist.entitlements
;
CODE_SIGN_STYLE
=
Automatic
;
CODE_SIGN_STYLE
=
Automatic
;
CURRENT_PROJECT_VERSION
=
1
0
;
CURRENT_PROJECT_VERSION
=
1
2
;
DEVELOPMENT_ASSET_PATHS
=
"\"Sailassist/Preview Content\""
;
DEVELOPMENT_ASSET_PATHS
=
"\"Sailassist/Preview Content\""
;
DEVELOPMENT_TEAM
=
D2DC7QNNJ8
;
DEVELOPMENT_TEAM
=
D2DC7QNNJ8
;
ENABLE_PREVIEWS
=
YES
;
ENABLE_PREVIEWS
=
YES
;
...
@@ -1447,7 +1447,7 @@
...
@@ -1447,7 +1447,7 @@
ASSETCATALOG_COMPILER_GLOBAL_ACCENT_COLOR_NAME
=
AccentColor
;
ASSETCATALOG_COMPILER_GLOBAL_ACCENT_COLOR_NAME
=
AccentColor
;
CODE_SIGN_ENTITLEMENTS
=
Sailassist/Sailassist.entitlements
;
CODE_SIGN_ENTITLEMENTS
=
Sailassist/Sailassist.entitlements
;
CODE_SIGN_STYLE
=
Automatic
;
CODE_SIGN_STYLE
=
Automatic
;
CURRENT_PROJECT_VERSION
=
1
0
;
CURRENT_PROJECT_VERSION
=
1
2
;
DEVELOPMENT_ASSET_PATHS
=
"\"Sailassist/Preview Content\""
;
DEVELOPMENT_ASSET_PATHS
=
"\"Sailassist/Preview Content\""
;
DEVELOPMENT_TEAM
=
D2DC7QNNJ8
;
DEVELOPMENT_TEAM
=
D2DC7QNNJ8
;
ENABLE_PREVIEWS
=
YES
;
ENABLE_PREVIEWS
=
YES
;
...
...
Seilassist/Sailassist/SailassistApp.swift
View file @
c9d4c353
...
@@ -154,11 +154,12 @@ extension AppDelegate: UNUserNotificationCenterDelegate {
...
@@ -154,11 +154,12 @@ extension AppDelegate: UNUserNotificationCenterDelegate {
return
return
}
}
completionHandler
([[
.
banner
,
.
badge
,
.
sound
]])
let
arrCategory
=
arrAPS
[
"category"
]
as?
String
??
""
let
arrCategory
=
arrAPS
[
"category"
]
as?
String
??
""
switch
arrCategory
{
switch
arrCategory
{
case
"chat"
:
case
"chat"
:
guard
let
arrAlert
=
arrAPS
[
"alert"
]
as?
[
String
:
Any
]
else
{
guard
let
arrAlert
=
arrAPS
[
"alert"
]
as?
[
String
:
Any
]
else
{
completionHandler
([[
.
banner
,
.
badge
,
.
sound
]])
return
return
}
}
// let subtitle = arrAlert["subtitle"] as? String ?? "" //送信先名称
// let subtitle = arrAlert["subtitle"] as? String ?? "" //送信先名称
...
@@ -182,7 +183,6 @@ extension AppDelegate: UNUserNotificationCenterDelegate {
...
@@ -182,7 +183,6 @@ extension AppDelegate: UNUserNotificationCenterDelegate {
print
(
debug
:
"default"
)
print
(
debug
:
"default"
)
}
}
}
}
completionHandler
([[
.
banner
,
.
badge
,
.
sound
]])
}
}
// バックグラウンド状態で通知を受信して表示する
// バックグラウンド状態で通知を受信して表示する
...
@@ -197,11 +197,12 @@ extension AppDelegate: UNUserNotificationCenterDelegate {
...
@@ -197,11 +197,12 @@ extension AppDelegate: UNUserNotificationCenterDelegate {
return
return
}
}
completionHandler
()
let
arrCategory
=
arrAPS
[
"category"
]
as?
String
??
""
let
arrCategory
=
arrAPS
[
"category"
]
as?
String
??
""
switch
arrCategory
{
switch
arrCategory
{
case
"chat"
:
case
"chat"
:
guard
let
arrAlert
=
arrAPS
[
"alert"
]
as?
[
String
:
Any
]
else
{
guard
let
arrAlert
=
arrAPS
[
"alert"
]
as?
[
String
:
Any
]
else
{
completionHandler
()
return
return
}
}
// let subtitle = arrAlert["subtitle"] as? String ?? "" //送信先名称
// let subtitle = arrAlert["subtitle"] as? String ?? "" //送信先名称
...
@@ -225,7 +226,6 @@ extension AppDelegate: UNUserNotificationCenterDelegate {
...
@@ -225,7 +226,6 @@ extension AppDelegate: UNUserNotificationCenterDelegate {
print
(
debug
:
"default"
)
print
(
debug
:
"default"
)
}
}
}
}
completionHandler
()
}
}
}
}
...
...
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