Manos Chorianopoulos

add logs at webview

...@@ -18,6 +18,8 @@ import SwiftEventBus ...@@ -18,6 +18,8 @@ import SwiftEventBus
18 public override func viewDidLoad() { 18 public override func viewDidLoad() {
19 super.viewDidLoad() 19 super.viewDidLoad()
20 20
21 + print("Webview url: " + campaignUrl)
22 +
21 self.hidesBottomBarWhenPushed = true 23 self.hidesBottomBarWhenPushed = true
22 24
23 setBackButton() 25 setBackButton()
......
...@@ -1516,6 +1516,7 @@ public class swiftApi { ...@@ -1516,6 +1516,7 @@ public class swiftApi {
1516 + "&client_id=" + (campaignInfo?["client_id"] as! String) 1516 + "&client_id=" + (campaignInfo?["client_id"] as! String)
1517 + "&client_secret=" + (campaignInfo?["client_secret"] as! String); 1517 + "&client_secret=" + (campaignInfo?["client_secret"] as! String);
1518 1518
1519 + print("constructCampaignUrl url: " + finalUrl)
1519 return finalUrl 1520 return finalUrl
1520 } 1521 }
1521 1522
...@@ -1556,10 +1557,12 @@ public class swiftApi { ...@@ -1556,10 +1557,12 @@ public class swiftApi {
1556 + "&TREATMENT_CODE=" + (campaign._treatmentCode) 1557 + "&TREATMENT_CODE=" + (campaign._treatmentCode)
1557 + "&OfferAudienceLevel=" + (campaign._eligibleAssets != nil && campaign._eligibleAssets.count > 0 ? "MSISDN" : "GUID"); 1558 + "&OfferAudienceLevel=" + (campaign._eligibleAssets != nil && campaign._eligibleAssets.count > 0 ? "MSISDN" : "GUID");
1558 1559
1560 + print("constructCcmsUrl url: " + finalUrl)
1559 return finalUrl 1561 return finalUrl
1560 break; 1562 break;
1561 } 1563 }
1562 } 1564 }
1565 + print("constructCcmsUrl url: " + "")
1563 return "" 1566 return ""
1564 } 1567 }
1565 1568
...@@ -1598,6 +1601,7 @@ public class swiftApi { ...@@ -1598,6 +1601,7 @@ public class swiftApi {
1598 + "&TREATMENT_CODE=" + (ccmsCampaign._treatmentCode) 1601 + "&TREATMENT_CODE=" + (ccmsCampaign._treatmentCode)
1599 + "&OfferAudienceLevel=" + (ccmsCampaign._eligibleAssets != nil && ccmsCampaign._eligibleAssets.count > 0 ? "MSISDN" : "GUID"); 1602 + "&OfferAudienceLevel=" + (ccmsCampaign._eligibleAssets != nil && ccmsCampaign._eligibleAssets.count > 0 ? "MSISDN" : "GUID");
1600 1603
1604 + print("constructCcmsUrl url: " + finalUrl)
1601 return finalUrl 1605 return finalUrl
1602 } 1606 }
1603 1607
......