How to modify EngagementOverlayNotification.xaml or EngagementOverlayAnnouncement.xaml in Overlay folder under resources in windows universal app? - azure-mobile-engagement

with the help of Windows Universal Apps Reach SDK Integration
i have implemented POLL and Notification in my windows universal app, this is cool.
In the article they mentioned like
You can customize the overlay notification and announcement directly on their xaml and cs files:
EngagementAnnouncement.html : The Announcement web view html design.
EngagementOverlayAnnouncement.xaml : The Announcement xaml design.
EngagementOverlayAnnouncement.xaml.cs : The EngagementOverlayAnnouncement.xaml linked code.
EngagementNotification.html : The Notification web view html design.
EngagementOverlayNotification.xaml : The Notification xaml design.
EngagementOverlayNotification.xaml.cs : The EngagementOverlayNotification.xaml linked code.
EngagementPageOverlay.cs : The Overlay announcement and notification display code.
According to my needs, I want to customize the design in xaml file, i have added a grid and customized it in EngagementOverlayNotification.xaml
but whenever i get the notification the customized part is always visible in the app home screen? How to handle this issue?Windows Universal Apps Reach SDK Integration

Forwarding an answer from the MSDN forum:
At that time, on the Windows Universal SDK, the XAML customization is limited to how the "WebView" xaml element is set for notification, announcement and polls within the grid. All other UI customizations have to be done on the HTML files from the Resources folder.

Related

How to display images and texts dynamically using logics with Swift?

I'm trying to build a sample app (using Swift 4), now I would like to add a function: To display images and labels dynamically.
For example: sometimes, I would like to display an image in the top of a ViewController, just like the following picture shows:
But sometimes, I would like the display the image in the bottom of the Summary label, or some other positions.
Is there any way to make it happen? And the most important is: There is no way to modify the codes, once the app submitted to App Store. So, the logic may be implemented from internet? I'm not sure about this. Thanks.
PS: I'm using AWS Mobile Hub (AWS S3, AWS Dynamodb) to retrieve images and items.
There are few options, check out rollout.io
You can create this screen in react-native and you can upload your .jsbandle on the server, so whenever you want to change this behavior just need to build your react-native project and replace the .jsbundle file on the server.
Look at this blog for detail.
https://medium.com/ios-os-x-development/so-you-want-to-dynamically-update-your-react-native-app-d1d88bf11ede
Note: Apple review team may reject your app.
Your app, extension, and/or linked framework appears to contain code designed explicitly with the capability to change your app’s behavior or functionality after App Review approval, which is not in compliance with section 3.3.2 of the Apple Developer Program License Agreement and App Store Review Guideline 2.5.2. This code, combined with a remote resource, can facilitate significant changes to your app’s behavior compared to when it was initially reviewed for the App Store. While you may not be using this functionality currently, it has the potential to load private frameworks, private methods, and enable future feature changes"

branch.io sharesheet questions

Im using branch.io's sdk for unity, im having 2 questions im hoping someone could answer:
1: Is it any way to restrict the share sheet from sharing to certain apps? for example some apps that doesn't handle links well and in special the sms service.
The reason we do not want the ability to send by sms is that the app needs permission to access the phone book and thus the google play service will need an "privacy policy" link.
2: If its not then i would like to know if you guys could lead me in the right direction when writing a privacy policy because i do not have any legal education and do not know how to wright it. Is it sufficient to state that we are using your sdk? The demands are things like "you should see to it that the code is secure and encrypted" (Something like that) though i'm using your sdk and do not have a clue about how it works.
Thanks!
There is no way to change the list of apps from the share sheet in Branch's Unity SDK. Although Branch does have an end point to exclude certain apps using the Android SDK.
You will need to export your Unity 3D project to Android Studio. Once you successfully export the project, you can use the Branch Android SDK endpoint to exclude any app by providing the Package name of the App.
This is the sample code to update your Share Sheet:
//define the share sheet style
ShareSheetStyle shareSheetStyle = new ShareSheetStyle(context, shareTitle, shareDescription)
.setCopyUrlStyle(getResources().getDrawable(android.R.drawable.ic_menu_send), "Copy this URl", "Link added to clipboard")
.setMoreOptionStyle(getResources().getDrawable(android.R.drawable.ic_menu_search), "Show more")
.addPreferredSharingOption(SharingHelper.SHARE_WITH.FACEBOOK)
.addPreferredSharingOption(SharingHelper.SHARE_WITH.GMAIL)
.addPreferredSharingOption(SharingHelper.SHARE_WITH.TWITTER)
.addPreferredSharingOption(SharingHelper.SHARE_WITH.PINTEREST)
.setAsFullWidthStyle(true)
.setSharingTitle("Share With");
//to exclude whatsapp from the Share Sheet
shareSheetStyle.excludeFromShareSheet("com.whatsapp");
//to exclude android messages app from the Share Sheet
shareSheetStyle.excludeFromShareSheet("com.google.android.apps.messaging");

iOS 10 Messages App URL Preview

Is there a way to control the URL rendering on Messages App on iOS 10 with special meta tags, such as Open Graph tags or Twitter cards tags?
It seems like it is not based on apps installed, so I'd assume it is a white list made by Apple if we cannot control it.
Example:
Apple calls the metadata used for rendering web content throughout iOS "Web Markup" — this is largely based on schema.org and Open Graph. For details see the Mark Up Web Content section in Apple's App Search Programming Guide.
You can validate your metadata using the API Validation Tool or using iMessage in iOS 10.

iOS Share Dialog?

I'm curious, is the standard "Share" dialog you see throughout a lot of iOS apps a standard SDK dialog or is everyone just mimicking the ones that Apple created for their apps like Safari? Or perhaps everyone is using ShareKit?
For instance, on iPhone you get a nice 3/4 modal dialog which does a vertical cover appearance, containing a bunch of shiny buttons:
While on iPad you see a "speech bubble" type dialog appear:
This seems too standard across apps to just be coincidence/people ripping off the look and feel.
The situation you presented in this specific case is caused by the fact that on iPad, the UIActionSheet is always presented within a popover controller, and on the iPhone it displays as in your example, withouth a Popover Controller (which is only available on the iPad)
I've written my own code for sharing using Facebook's SDK and the iOS5 Twitter integration so I've never used it but I believe there is a library you can use called ShareKit that will create the action sheets and sharing capability that you'd like. The "up-to-date"/"2.0" (I believe the original is no longer maintained) version is available here:
https://github.com/ShareKit/ShareKit
Apple provides the tools to make UI objects. The one you are looking at is "UIActionSheet".
Developers can bind methods to the tap events of the actionsheet.
Apple encourages developers to keep a consistent UI in order to make the overall use easier on the user.
Check out the Apple Human Interface Guidelines.
link

Launching a native application from a link of website on iPhone

I have a query regarding launching a native application from a link of website on iPhone.
I will explain.
Generally a web based application is used to work online without using any feature of iPhone device (such as GPS, Camera, Accelerometer etc.)
I have a iPhone specific website which performs many tasks online.
Now while keeping all the functionality same, I want to add a feature of taking a picture from iPhone in-built camera.
i.e. when user clicks a button on website "Take Picture", my native application should be launched, which will take a picture and do specific tasks..
How to capture a event of button click which is performed on website?
Should I use UIWebView or Safari?
I know that using URL Scheme we can launch Safari from native application.
But how to achieve the opposite as explained above?
All other functionality works great on website, so I don't want to convert the whole website into native application.
(Otherwise I will have to deal with web services). Only this functionality needs to be added.
Register a URL Handler, then have a link on your site to myapphandle://some.parameters.here/
A la: http://iosdevelopertips.com/cocoa/launching-your-own-application-via-a-custom-url-scheme.html