Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
C
cordova-plugin-local-notifications
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
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Nabil Sadki
cordova-plugin-local-notifications
Commits
657ce684
Commit
657ce684
authored
Jul 02, 2017
by
Sebastián Katzer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Removed support for internal app:// attachments
parent
8767a0f2
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 additions
and
25 deletions
+1
-25
APPNotificationOptions.m
src/ios/APPNotificationOptions.m
+1
-25
No files found.
src/ios/APPNotificationOptions.m
View file @
657ce684
...
...
@@ -466,10 +466,6 @@
{
return
[
self
urlForAsset
:
path
];
}
else
if
([
path
hasPrefix
:
@"app://"
])
{
return
[
self
urlForAppInternalPath
:
path
];
}
else
if
([
path
hasPrefix
:
@"base64:"
])
{
return
[
self
urlFromBase64
:
path
];
...
...
@@ -517,7 +513,7 @@
{
NSFileManager
*
fm
=
[
NSFileManager
defaultManager
];
NSBundle
*
mainBundle
=
[
NSBundle
mainBundle
];
NSString
*
bundlePath
=
[
mainBundle
bundl
ePath
];
NSString
*
bundlePath
=
[
mainBundle
resourc
ePath
];
if
([
path
isEqualToString
:
@"res://icon"
])
{
path
=
@"res://AppIcon60x60@3x.png"
;
...
...
@@ -563,26 +559,6 @@
}
/**
* URL for an internal app path.
*
* @param [ NSString* ] path A relative file path from main bundle dir.
*
* @return [ NSURL* ]
*/
-
(
NSURL
*
)
urlForAppInternalPath
:
(
NSString
*
)
path
{
NSFileManager
*
fm
=
[
NSFileManager
defaultManager
];
NSBundle
*
mainBundle
=
[
NSBundle
mainBundle
];
NSString
*
absPath
=
[
mainBundle
bundlePath
];
if
(
!
[
fm
fileExistsAtPath
:
absPath
])
{
NSLog
(
@"File not found: %@"
,
absPath
);
}
return
[
NSURL
fileURLWithPath
:
absPath
];
}
/**
* URL for a base64 encoded string.
*
* @param [ NSString* ] base64String Base64 encoded 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