Browse Source

Ultimo AWS notification end-point

Hector Carrion 4 years ago
parent
commit
08f4289f11

+ 1
- 1
EncuestaMarle/AppDelegate.swift View File

17
 @UIApplicationMain
17
 @UIApplicationMain
18
 class AppDelegate: UIResponder, UIApplicationDelegate, UNUserNotificationCenterDelegate {
18
 class AppDelegate: UIResponder, UIApplicationDelegate, UNUserNotificationCenterDelegate {
19
 
19
 
20
-    let SNSPlatformApplicationArn = "arn:aws:sns:us-east-1:227586183436:app/APNS_SANDBOX/MARLE_iOS"
20
+    let SNSPlatformApplicationArn = "arn:aws:sns:us-east-1:227586183436:app/APNS/Tania-iOS-2020-NEW"
21
     
21
     
22
     var containerViewController: ResearchContainerViewController? {
22
     var containerViewController: ResearchContainerViewController? {
23
         return window?.rootViewController as? ResearchContainerViewController
23
         return window?.rootViewController as? ResearchContainerViewController

BIN
EncuestaMarle/Assets.xcassets/appstore.png View File


+ 5
- 5
EncuestaMarle/Base.lproj/Main.storyboard View File

1
 <?xml version="1.0" encoding="UTF-8"?>
1
 <?xml version="1.0" encoding="UTF-8"?>
2
-<document type="com.apple.InterfaceBuilder3.CocoaTouch.Storyboard.XIB" version="3.0" toolsVersion="15505" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" useTraitCollections="YES" useSafeAreas="YES" colorMatched="YES" initialViewController="VBd-I7-AF1">
2
+<document type="com.apple.InterfaceBuilder3.CocoaTouch.Storyboard.XIB" version="3.0" toolsVersion="15705" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" useTraitCollections="YES" useSafeAreas="YES" colorMatched="YES" initialViewController="VBd-I7-AF1">
3
     <device id="retina5_5" orientation="portrait" appearance="light"/>
3
     <device id="retina5_5" orientation="portrait" appearance="light"/>
4
     <dependencies>
4
     <dependencies>
5
         <deployment identifier="iOS"/>
5
         <deployment identifier="iOS"/>
6
-        <plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="15510"/>
6
+        <plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="15706"/>
7
         <capability name="Named colors" minToolsVersion="9.0"/>
7
         <capability name="Named colors" minToolsVersion="9.0"/>
8
         <capability name="Safe area layout guides" minToolsVersion="9.0"/>
8
         <capability name="Safe area layout guides" minToolsVersion="9.0"/>
9
         <capability name="documents saved in the Xcode 8 format" minToolsVersion="8.0"/>
9
         <capability name="documents saved in the Xcode 8 format" minToolsVersion="8.0"/>
153
                                     <action selector="joinButtonTapped:" destination="w49-Mx-cg8" eventType="touchUpInside" id="rRA-lm-n6W"/>
153
                                     <action selector="joinButtonTapped:" destination="w49-Mx-cg8" eventType="touchUpInside" id="rRA-lm-n6W"/>
154
                                 </connections>
154
                                 </connections>
155
                             </button>
155
                             </button>
156
-                            <textView clipsSubviews="YES" userInteractionEnabled="NO" contentMode="scaleToFill" fixedFrame="YES" textAlignment="natural" translatesAutoresizingMaskIntoConstraints="NO" id="Fb5-jH-gVK">
156
+                            <textView clipsSubviews="YES" userInteractionEnabled="NO" contentMode="scaleToFill" fixedFrame="YES" editable="NO" textAlignment="natural" selectable="NO" translatesAutoresizingMaskIntoConstraints="NO" id="Fb5-jH-gVK">
157
                                 <rect key="frame" x="20" y="217" width="374" height="185"/>
157
                                 <rect key="frame" x="20" y="217" width="374" height="185"/>
158
                                 <autoresizingMask key="autoresizingMask" flexibleMinX="YES" widthSizable="YES" flexibleMaxX="YES" flexibleMinY="YES" heightSizable="YES" flexibleMaxY="YES"/>
158
                                 <autoresizingMask key="autoresizingMask" flexibleMinX="YES" widthSizable="YES" flexibleMaxX="YES" flexibleMinY="YES" heightSizable="YES" flexibleMaxY="YES"/>
159
                                 <color key="backgroundColor" systemColor="systemBackgroundColor" cocoaTouchSystemColor="whiteColor"/>
159
                                 <color key="backgroundColor" systemColor="systemBackgroundColor" cocoaTouchSystemColor="whiteColor"/>
164
                                 <fontDescription key="fontDescription" style="UICTFontTextStyleBody"/>
164
                                 <fontDescription key="fontDescription" style="UICTFontTextStyleBody"/>
165
                                 <textInputTraits key="textInputTraits" autocapitalizationType="sentences"/>
165
                                 <textInputTraits key="textInputTraits" autocapitalizationType="sentences"/>
166
                             </textView>
166
                             </textView>
167
-                            <textView clipsSubviews="YES" multipleTouchEnabled="YES" contentMode="scaleToFill" fixedFrame="YES" text="Welcome to Tania" textAlignment="natural" translatesAutoresizingMaskIntoConstraints="NO" id="gEj-a4-kWk">
167
+                            <textView clipsSubviews="YES" multipleTouchEnabled="YES" contentMode="scaleToFill" fixedFrame="YES" editable="NO" text="Welcome to Tania" textAlignment="natural" selectable="NO" translatesAutoresizingMaskIntoConstraints="NO" id="gEj-a4-kWk">
168
                                 <rect key="frame" x="20" y="114" width="374" height="50"/>
168
                                 <rect key="frame" x="20" y="114" width="374" height="50"/>
169
                                 <autoresizingMask key="autoresizingMask" flexibleMinX="YES" widthSizable="YES" flexibleMaxX="YES" flexibleMinY="YES" heightSizable="YES" flexibleMaxY="YES"/>
169
                                 <autoresizingMask key="autoresizingMask" flexibleMinX="YES" widthSizable="YES" flexibleMaxX="YES" flexibleMinY="YES" heightSizable="YES" flexibleMaxY="YES"/>
170
                                 <color key="backgroundColor" systemColor="systemBackgroundColor" cocoaTouchSystemColor="whiteColor"/>
170
                                 <color key="backgroundColor" systemColor="systemBackgroundColor" cocoaTouchSystemColor="whiteColor"/>
172
                                 <fontDescription key="fontDescription" style="UICTFontTextStyleTitle0"/>
172
                                 <fontDescription key="fontDescription" style="UICTFontTextStyleTitle0"/>
173
                                 <textInputTraits key="textInputTraits" autocapitalizationType="sentences"/>
173
                                 <textInputTraits key="textInputTraits" autocapitalizationType="sentences"/>
174
                             </textView>
174
                             </textView>
175
-                            <textView clipsSubviews="YES" multipleTouchEnabled="YES" contentMode="scaleToFill" fixedFrame="YES" text="Momentary Assesment Made Simple" textAlignment="natural" translatesAutoresizingMaskIntoConstraints="NO" id="0BG-sB-Fdn">
175
+                            <textView clipsSubviews="YES" multipleTouchEnabled="YES" contentMode="scaleToFill" fixedFrame="YES" editable="NO" text="Momentary Assesment Made Simple" textAlignment="natural" selectable="NO" translatesAutoresizingMaskIntoConstraints="NO" id="0BG-sB-Fdn">
176
                                 <rect key="frame" x="20" y="163" width="374" height="30"/>
176
                                 <rect key="frame" x="20" y="163" width="374" height="30"/>
177
                                 <autoresizingMask key="autoresizingMask" flexibleMinX="YES" widthSizable="YES" flexibleMaxX="YES" flexibleMinY="YES" heightSizable="YES" flexibleMaxY="YES"/>
177
                                 <autoresizingMask key="autoresizingMask" flexibleMinX="YES" widthSizable="YES" flexibleMaxX="YES" flexibleMinY="YES" heightSizable="YES" flexibleMaxY="YES"/>
178
                                 <color key="backgroundColor" systemColor="systemBackgroundColor" cocoaTouchSystemColor="whiteColor"/>
178
                                 <color key="backgroundColor" systemColor="systemBackgroundColor" cocoaTouchSystemColor="whiteColor"/>

+ 14
- 14
EncuestaMarle/OnboardingViewController.swift View File

433
                     
433
                     
434
                     // MARK: Restore PDF here
434
                     // MARK: Restore PDF here
435
                     
435
                     
436
-                    let decodedString = Data(base64Encoded: response_r)
437
-                    var docURL = (FileManager.default.urls(for: .documentDirectory, in: .userDomainMask)).last as NSURL?
438
-                    docURL = docURL?.appendingPathComponent("ConsentDocument.pdf") as NSURL?
439
-                    
440
-                    do {
441
-                        try decodedString?.write(to:docURL! as URL)
442
-                        print("PDF written to disk from recovery ✅")
443
-                        print(docURL! as URL)
444
-                        
445
-                    } catch let error {
446
-                        print("❌")
447
-                        print(error.localizedDescription)
448
-                        
449
-                    }
436
+//                    let decodedString = Data(base64Encoded: response_r)
437
+//                    var docURL = (FileManager.default.urls(for: .documentDirectory, in: .userDomainMask)).last as NSURL?
438
+//                    docURL = docURL?.appendingPathComponent("ConsentDocument.pdf") as NSURL?
439
+//
440
+//                    do {
441
+//                        try decodedString?.write(to:docURL! as URL)
442
+//                        print("PDF written to disk from recovery ✅")
443
+//                        print(docURL! as URL)
444
+//
445
+//                    } catch let error {
446
+//                        print("❌")
447
+//                        print(error.localizedDescription)
448
+//
449
+//                    }
450
                     
450
                     
451
                     
451
                     
452
                     performSegue(withIdentifier: "unwindToStudy", sender: nil)
452
                     performSegue(withIdentifier: "unwindToStudy", sender: nil)