Post

Replies

Boosts

Views

Activity

Reply to NSTaggedPointerString
Thanks Claude. Please find the code snippets. We have done the implementation in different place added here for your view. Scenario #1    func textField(_ textField: UITextField, shouldChangeCharactersIn range: NSRange, replacementString string: String) - Bool {     let nsString = NSString(string: textField.text!)     let newText = nsString.replacingCharacters(in: range, with: string) } Scenario #2    func stringByReplacingFirstOccurrenceOfString(target: String, withString replaceString: String) - String {     if let range = self.range(of: target) {       return replacingCharacters(in: range, with: replaceString)     } else {       return self     }   }
Mar ’21
Reply to Notification Service Extension Not working
Thanks charliecruzan. The payload looks good when arrived, meeting the compliance.I have attached the same for your reference, please have a look. Note - I have removed value of the attachment url key as it shows error when pasting here (but that is valid url which contains asset) fyi - Gualtier Malde  [AnyHashable("aps"): {  MobileMessage =   {    actions =    (             {        background =        {           border = 1;            borderColor = "#000000";            color = "#ED2B09";         };         cornerRadius = 5;         event = notificationOpened;         font =        {           color = "#F8F9FA";           size = 12;           style = normal;         };         label = Usage;        link = "usage";       }     );     constrainWidths = 1;     content =    {       background =      {         border = 0;         borderColor = "#000000";         color = "#FFFFFF";      };       body = "Sample In-App Message";       bodyFont =      {         color = "#000000";         size = 12;         style = normal;       };       graphic = "";       graphicBorder =       {         border = 0;         borderColor = "#000000";       };       title = Vodafone;       titleFont =       {         color = "#000000";         size = 14;        style = bold;       };     };     creativeId = "9de6da5b-e7d2-4502-9687-210be313e281";     dismissEvent = messageDismiss;     eventId = "de1a23aa-539f-4b54-ad4d-fe28cd644494";     taskId = "16f9d1a6-f2de-4725-89a0-fd672f743311";     template = "creative.mobileInAppMessage.large";   };   alert =   {     body = "Sample In-App Message";     title = Vodafone;  };   category = SASCollector;   "mutable-content" = 1;   sound = default; }, AnyHashable("data"): {  "attachment-url" = ""; } ]
Mar ’21
Reply to LSSupportsOpeningDocumentsInPlace
Thanks Edford, Much appreciate your constant reply. As you advised I will change and see how it goes in the next prod release and keep you posted. Please find the existing and change of snippets for your reference. EXISTING private func application(: UIApplication, open url: URL, options : [UIApplication.OpenURLOptionsKey: Any] = [:]) - Bool {NEW/CHANGED func application(_ app: UIApplication, open url: URL, options: [UIApplication.OpenURLOptionsKey : Any] = [:]) - Bool {
Mar ’21
Reply to LSSupportsOpeningDocumentsInPlace
Hi Edford, Thanks for your reply, much appreciated. But we have implemented this method 2 years back then why we are getting crash suddenly on iOS 14. private func application(: UIApplication, open url: URL, options : [UIApplication.OpenURLOptionsKey: Any] = [:]) - Bool { } Any reasons behind the same ?
Feb ’21