Toggle navigation
Toggle navigation
This project
Loading...
Sign in
open-source
/
warply_sdk_framework
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Graphs
Network
Create a new issue
Commits
Issue Boards
Authored by
Manos Chorianopoulos
2022-11-10 12:57:12 +0200
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
7ed7ed39022a70c314c9f6d9b0b2f9ed76ae3420
7ed7ed39
1 parent
732971b1
Fixed sendDeviceInfo crash
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
15 additions
and
1 deletions
SwiftWarplyFramework/SwiftWarplyFramework/MyApi.m
SwiftWarplyFramework/SwiftWarplyFramework/Warply/Warply.h
SwiftWarplyFramework/SwiftWarplyFramework/Warply/Warply.m
SwiftWarplyFramework/SwiftWarplyFramework/MyApi.m
View file @
7ed7ed3
...
...
@@ -1723,7 +1723,7 @@ NSString *VERIFY_URL = @"/partners/cosmote/verify";
-
(
void
)
sendDeviceInfoIfNecessary
:
(
NSString
*
)
newDeviceToken
{
if
([
Warply
sharedService
]
!=
nil
)
{
if
([
Warply
sharedService
Exists
]
==
YES
)
{
[[
Warply
sharedService
].
pushManager
sendDeviceInfoIfNecessary
:
newDeviceToken
];
}
...
...
SwiftWarplyFramework/SwiftWarplyFramework/Warply/Warply.h
View file @
7ed7ed3
...
...
@@ -135,6 +135,10 @@ typedef enum {
*/
+
(
Warply
*
)
sharedService
;
/*!
@abstract Returns if a shared instance of WLAppService exists.
*/
+
(
BOOL
)
sharedServiceExists
;
/*!
@methodgroup Launching and Abolishing Warp service.
*/
/*!
...
...
SwiftWarplyFramework/SwiftWarplyFramework/Warply/Warply.m
View file @
7ed7ed3
...
...
@@ -106,6 +106,16 @@ typedef void (^FailureResponse)(NSURLSessionDataTask * _Nullable task, NSError *
}
///////////////////////////////////////////////////////////////////////////////
+
(
BOOL
)
sharedServiceExists
{
if
(
_sharedService
!=
nil
)
{
return
YES
;
}
else
{
return
NO
;
}
}
///////////////////////////////////////////////////////////////////////////////
+
(
void
)
launchWithAppUUID
:
(
NSString
*
)
appUUID
launchOptions
:
(
NSDictionary
*
)
launchOptions
customPushDelegate
:
(
id
<
WLCustomPushHandler
>
)
customPushDelegate
serverBaseUrl
:
(
NSString
*
)
url
{
//Launch Once
...
...
Please
register
or
login
to post a comment