extensionProperty not showing up in profile card - microsoft-graph-api

I created an extension property in azure ad and now trying to display that information in profile card
Created extension property like this : https://learn.microsoft.com/en-us/graph/api/resources/extensionproperty?view=graph-rest-1.0
and trying to display that attribute in profile card
https://learn.microsoft.com/en-us/graph/add-properties-profilecard
but it doesnt show up

You have created extension property but the profile card supports displaying only extension attribute which is not the same thing as extension property.
Extension attribute
Extension property

Related

Where to set User Properties in iOS for Firebase Analytics?

I have several user types:
Type A, Type B, Type C
User has to chose its type at time of sign up and it gets fixed for a particular user.
A user cannot change its type. How can I set User property so that a particular event can be filters using User Type?
Suppose event is logged by name : example_event
I want to check that how many users of type A triggers example_event?
Go to UserProperty tab in Firebase console of your project. Click NEW USER PROPERTY.
Enter a name and description for the user property, then click CREATE.
Let's suppose you have set USER_TYPE as Firebase property .
Now you can fire this property using below code .
Analytics.setUserProperty(USER_TYPE, forName: "A/B/C")
It will take some time to reflect on your Events tab of your Firebase project console.

Display name For File provider extension

I would like to know how to modify the display name programatically on a file provider extension as shown in the image below
How to add this "Personal"

How to get Object ID for dynamically created Label?

How to get Object ID for dynamically created Label?? As I have to translate Label text for other languages.
Object ID is created by the interface builder and interface builder use it internally, there is no such property of UIView which gives you object id. Hence you can't access it via code (dynamically) regardless whether view is created on storyboard or at run time.
We can translate text from app using String file. In string file we can store strings we want to translate.
Ex:
Localizable.string(Hindi)
"translate" = "अनुवाद करना";
Localizable.string(English)
"translate" = "translate"
As we run app, app automatically store selected language translations from file.
Ex.[[Localisator sharedInstance] setLanguage:[language];

How to suggest my application in the list for save pdfs?

I am working on an application which I used pdfkit to implement that, and it shows and save pdf files.
My problem is that when I receive a pdf file in my email and then I want to save that pdf file in that application, when I click on save button it suggests this page to me but my application is not in the list. How can I make sure that my application also comes in this list as a suggested app?
Refer this link:
https://developer.apple.com/library/content/qa/qa1587/_index.html.
You need to register the document types that your application can open with iOS. To do this you need to add a document type to your app’s Info.plist for each document type that your app can open. Additionally if any of the document types are not known by iOS, you will need to provide an Uniform Type Identifier (UTI) for that document type.
Adding A Document Type:
To add the document type do the following:
In your Xcode project, select the target you want to add the document type to.
1.Select the Info tab.
2.Click on the disclosure button for Document Types to open the document types.
3.Click the “+” button.
In the newly created document type :
4.Type the name of the document type.
5.In the “Types” section fill in the UTI for the new type.
6.Provide an icon for the document.
7.Click the disclosure triangle to open Additional document type properties.
8.Click in the table to add a new key and value.
9.For the key value type: CFBundleTypeRole.
10.For the value type: Editor.
11.Click the + button to add another key/value pair.
12.For the key value type: LSHandlerRank.
13.For the value type: Owner.
Adding A Custom UTI:
If the document type you are adding is a custom document type, or a document type that iOS does not already know about, you will need to define the UTI for the document type. To add a new UTI do the following:
In your Xcode project select the target you want to add the new UTI to.
Select the Info tab.
1.Click on the disclosure button for Exported UTIs.
2.Click the “+” button.
3.Select “Add Exported UTI”.
4.In the Description field, fill in a description of the UTI.
5.In the Identifier field, fill in the identifier for the UTI.
6.In the Conforms To field fill in the list of UTIs that this new UTI conforms to.
7.Toggle the “Additional exported UTI properties” disclosure triangle to open up a table where you can add some additional information.
8.Click in the empty table and a list of items that can be added to the table will be displayed.
9.Type in “UTTypeTagSpecification”.
10.Set the type to Dictionary.
11.Click the disclosure triangle to open it, and click the + button in the table row to add an entry.
12.For the “New item” change the name to “public.filename-extension”.
13.For the type of the item change it to “Array”.
14.Toggle open the item you just added and click the + button in the table row.
15.For item 0 change the “value” to the file extension of your document. For example, txt, pdf, docx, etc.
The easiest way to test your custom document type is to email your custom file to your iOS device. Navigate to the email and ensure that the attachment is there. Tap and hold the document attachment icon. This should open a popover on the iPad, or an action sheet on the iPhone, that shows all of the apps that open your document type. Your app should show up in the list. Tap your app icon and your app should launch and receive the document from the email.
You need to create Action Extension.
Take a look at PSPDFKit's article.

Swift How to fix errors with Target Membership?

I am beginner to Swift and I am not aware of all the little details, so please forgive if it's a stupid question
My app is in quite advanced stage of development, so I would like to not mess with the existing code as little as possible. My problem is that I want to implement Today Extension in my app, in it I want to display a tableView that will display data from a single array from my "Plum" class and I need one method from the class to handle the selection. Unfortunately when I change the Plum's target membership to TodayExtension a whole bunch of errors are shown because many APIs from that class aren't available to TodayExtension. The class inherits from AVAudioPlayer so most essential methods aren't available in Extension.
I tried to create a helper class that would get the array from Plum and return it in method to my TableView but that still doesn't work because of "Use of unresolved identifier 'Plum'"
How can I obtain the array and use the method?
I think while adding Today Extension you might have got some classes for today extension,
You can use App Group with User Defaults functionality to transfer data from iOS app to today Extension classes
1) To set data you can use
var defaults: NSUserDefaults = NSUserDefaults(suiteName: <GroupID>)!
defaults.setObject(<YourArray, forKey:<KeyName>)
2) In Today Extension target's Class you can fetch that array like this
var defaults: NSUserDefaults = NSUserDefaults(suiteName: <GroupID>)!
var <YourArray> = defaults.stringForKey(<KeyName>)
Note : This is just pseudo code might contain error
Adding the Plum class in the today extension is a bad idea. Extensions should be lightweight and you only need to transfer the data needed.
In your case you may need the array of title and description. So form a array of dictionary with needed details and store these details in App group user defaults like #Hitesh answer.
In your today extension class, read this array from the user defaults then display the details in the table view.

Resources