Skip to content

Commit

Permalink
Merge pull request #215 from Backendless/BKNDLSS-17834
Browse files Browse the repository at this point in the history
User should create app group for push templates which starts with "gr…
  • Loading branch information
ksv510 authored Nov 22, 2018
2 parents 6a64d75 + 4f89afa commit 2feb7c4
Show file tree
Hide file tree
Showing 16 changed files with 24 additions and 5 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
# RELEASE HISTORY

## 5.2.5 November 22, 2018
* User should create app group for push templates which starts with "group.backendlesspush."

## 5.2.4 November 15, 2018
* Setting dictionary's NSNull values to nil removed because of retrieving schema definition structure
* The processAsyncAMFResponse method from HttpEngine class fixed to process response correctly when NSURLSession returns error
Expand Down
4 changes: 2 additions & 2 deletions Pods/Backendless.podspec

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ -(UNNotificationRequest *)prepareRequestWithIosImmediatePush:(UNNotificationRequ

-(UNNotificationRequest *)prepareRequestWithTemplate:(UNNotificationRequest *)request {
NSString *templateName = [request.content.userInfo valueForKey:@"template_name"];
NSDictionary *iosPushTemplates = [userDefaultsHelper readFromUserDefaultsWithKey:PUSH_TEMPLATES_USER_DEFAULTS withSuiteName:@"group.com.backendless.PushTemplates"];
NSDictionary *iosPushTemplates = [userDefaultsHelper readFromUserDefaultsWithKey:PUSH_TEMPLATES_USER_DEFAULTS withSuiteName:[userDefaultsHelper getAppGroup]];
NSDictionary *iosPushTemplate = [iosPushTemplates valueForKey:templateName];
return [self createRequestFromTemplate:[self dictionaryWithoutNulls:iosPushTemplate] request:request];
}
Expand Down
Loading

0 comments on commit 2feb7c4

Please sign in to comment.