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
2023-10-31 15:17:35 +0200
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
2fbbf0d56f01813777fcad52f50759308a89ebfd
2fbbf0d5
1 parent
a7db9e55
push Notifications fix
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
28 additions
and
4 deletions
SwiftWarplyFramework/SwiftWarplyFramework/Warply/inbox/WLAPSItem.h
SwiftWarplyFramework/SwiftWarplyFramework/Warply/inbox/WLAPSItem.m
SwiftWarplyFramework/SwiftWarplyFramework/Warply/inbox/WLBaseItem.h
SwiftWarplyFramework/SwiftWarplyFramework/Warply/inbox/WLBaseItem.m
SwiftWarplyFramework/SwiftWarplyFramework/Warply/managers/WLPushManager.m
SwiftWarplyFramework/SwiftWarplyFramework/Warply/inbox/WLAPSItem.h
View file @
2fbbf0d
...
...
@@ -43,6 +43,9 @@
NSString
*
_alert
;
NSString
*
_sound
;
NSUInteger
_mutable_content
;
NSString
*
_category
;
// Test code for push
// NSString *_category;
// NSInteger _mutable_content;
...
...
@@ -63,6 +66,9 @@
*/
@property
(
nonatomic
,
copy
)
NSString
*
sound
;
@property
(
nonatomic
)
NSUInteger
mutable_content
;
@property
(
nonatomic
,
copy
)
NSString
*
category
;
/*!
@methodgroup Initializing a WLAPSItem Object
*/
...
...
SwiftWarplyFramework/SwiftWarplyFramework/Warply/inbox/WLAPSItem.m
View file @
2fbbf0d
...
...
@@ -52,9 +52,15 @@
if
([
idx
isKindOfClass
:[
NSNull
class
]]
)
continue
;
[
self
setValue
:
idx
forKey
:
key
];
if
([
key
isEqualToString
:
@"mutable-content"
])
{
[
self
setValue
:
idx
forKey
:
@"mutable_content"
];
}
else
{
[
self
setValue
:
idx
forKey
:
key
];
}
}
@catch
(
NSException
*
e
)
{
WLLOG
(
@"%@: WLAPSItem UnKnown Key:%@ - Value:%@"
,
[
e
name
],
key
,
idx
);
}
@catch
(
NSException
*
e
)
{
WLLOG
(
@"%@: UnKnown Key:%@ - Value:%@"
,
[
e
name
],
key
,
idx
);
}
@finally
{
}
}
}
...
...
SwiftWarplyFramework/SwiftWarplyFramework/Warply/inbox/WLBaseItem.h
View file @
2fbbf0d
...
...
@@ -46,6 +46,11 @@
NSString
*
_message
;
WLAPSItem
*
_apsItem
;
NSDictionary
*
_customData
;
NSString
*
_EXTRA_FIELDS
;
NSString
*
_attachment_url
;
NSString
*
_data
;
NSString
*
_url
;
}
/*!
@property action
...
...
@@ -90,6 +95,11 @@
*/
@property
(
nonatomic
,
strong
)
NSDictionary
*
customData
;
@property
(
nonatomic
,
copy
)
NSString
*
EXTRA_FIELDS
;
@property
(
nonatomic
,
copy
)
NSString
*
attachment_url
;
@property
(
nonatomic
,
copy
)
NSString
*
data
;
@property
(
nonatomic
,
copy
)
NSString
*
url
;
/*!
@methodgroup Initializing a WLBaseItem Object
*/
...
...
SwiftWarplyFramework/SwiftWarplyFramework/Warply/inbox/WLBaseItem.m
View file @
2fbbf0d
...
...
@@ -55,13 +55,15 @@
[
self
setValue
:
idx
forKey
:
@"action"
];
else
if
([
key
isEqualToString
:
@"aps"
])
_apsItem
=
[[
WLAPSItem
alloc
]
initWithAttributes
:(
NSDictionary
*
)
idx
];
else
if
([
key
isEqualToString
:
@"attachment-url"
])
[
self
setValue
:
idx
forKey
:
@"attachment_url"
];
else
[
self
setValue
:
idx
forKey
:
key
];
}
@catch
(
NSException
*
e
)
{
[
_customData
setValue
:
idx
forKey
:
key
];
WLLOG
(
@"%@: UnKnown Key:%@ - Value:%@"
,
[
e
name
],
key
,
idx
);
}
@finally
{
}
WLLOG
(
@"%@:
WLBaseItem
UnKnown Key:%@ - Value:%@"
,
[
e
name
],
key
,
idx
);
}
@finally
{
}
}
}
...
...
SwiftWarplyFramework/SwiftWarplyFramework/Warply/managers/WLPushManager.m
View file @
2fbbf0d
This diff is collapsed. Click to expand it.
Please
register
or
login
to post a comment