Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
1
1weather
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Dmitriy Stepanets
1weather
Commits
075430dc
Commit
075430dc
authored
Apr 13, 2021
by
Demid Merzlyakov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
MoEngage: initialization / CCPA improvements.
parent
20521d84
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
3 deletions
+8
-3
1Weather/AppDelegate.swift
+5
-3
1Weather/Model/CCPA/CCPAHelper.swift
+3
-0
No files found.
1Weather/AppDelegate.swift
View file @
075430dc
...
...
@@ -51,13 +51,15 @@ class AppDelegate: UIResponder, UIApplicationDelegate {
// )
//MoEngage setup
var
moEngageConfig
=
MOSDKConfig
(
appID
:
kMoEngageAppId
)
moEngageConfig
.
appGroupID
=
"group.com.onelouder.oneweather.MoEngage"
#if DEBUG
MoEngage
.
enableSDKLogs
(
true
)
MoEngage
.
sharedInstance
()
.
initialize
Dev
(
withAppID
:
kMoEngageAppId
,
with
LaunchOptions
:
launchOptions
)
MoEngage
.
sharedInstance
()
.
initialize
Test
(
with
:
moEngageConfig
,
and
LaunchOptions
:
launchOptions
)
#else
MoEngage
.
sharedInstance
()
.
initializeProd
(
withAppID
:
kMoEngageAppId
,
with
LaunchOptions
:
launchOptions
)
MoEngage
.
sharedInstance
()
.
initializeLive
(
with
:
moEngageConfig
,
and
LaunchOptions
:
launchOptions
)
#endif
MoEngage
.
setAppGroupID
(
"group.com.onelouder.oneweather.MoEngage"
)
return
true
}
...
...
1Weather/Model/CCPA/CCPAHelper.swift
View file @
075430dc
...
...
@@ -142,6 +142,9 @@ class CCPAHelper {
Firebase
.
Analytics
.
setAnalyticsCollectionEnabled
(
canCollectData
)
PSMLocation
.
sharedInstance
()
.
halted
=
!
canCollectData
// MoEngage
MoEngage
.
sharedInstance
()
.
optOut
(
ofDataTracking
:
!
canCollectData
)
}
private
func
registerApp
(
reason
:
String
)
{
...
...
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