Xamarin forms Emojis is not working in mobile side? - xamarin.forms

I am working on a chat application where I can send emojis. No issues when I send emojis, but when I retrieve those emoji messages the REST API is not working. While researching I found need to convert the emojis to Unicode before sending and convert again when retrieve. What is the correct way when working on emojis? I am using Label for showing messages.
I am sending emojis from the mobile side like below screenshot:
How I can do this?
Thanks in advance

If you are using a PCL you can do it something like this:
System.Net.WebUtility.UrlEncode(*string*); // Encode
System.Net.WebUtility.UrlDecode(*string*); // Decode

Related

PDF OCR Google cloud vision keep spacing

I don't know if it's possible, but I'm receiving forms in PDF format. I need to take the text from the PDF in the exact same position it is in the file and place it in a text document I can parse like:
Line 4 startCharacter 50 endcharacter 60
This would give me whatever text is in that position.
Is this possible?
At the moment, it is not possible to do this. I found a Feature Request made to Cloud Vision API to take a PDF file and export it as a searchable PDF which might resolve this issue. I recommend you to subscribe to the Feature Request (click on the star next to the title) so it can get more visibility.
In the meantime, you can check the documentation on PDFs recognition to try it out and see if you can get the desired behavior.
If the forms you are working with have a determined format, you might be able to solve the issue by going through the TextAnnotation response from the API. The response gives you the text, plus additional insights on it, like the pages, paragraphs, etc.

How can I send a message with a lot of images and text in a telegram chat like in the template below?

I am trying to write a telegram bot.
I want that my bot sends a message like in the following template with a lot of images and text. But I can't figure out which method is responsible for this. What is the correct approach to implement it?
https://drive.google.com/open?id=1G56EdNRn8X5m7uBJ5LrYfVG-JYPyAzNg
Just write your text inside telegram the way you want it, then copy it to your ide. Almost all editors support emojis. But in case your doesn't, you can always use this website:
https://unicode.org/emoji/charts-12.0/full-emoji-list.html
The method to be used is send message.

XAMARIN FORM : how to send message to specific number of watsapp

i have page in which i have image of watsapp icon. What i want is when i tap on that image it go to watsapp to specific number which will be our company number, so client can text us or send any image or file through watsapp
The easiest way would be through the custom URL scheme as described here: https://faq.whatsapp.com/en/iphone/23559013
Which basically tells you to open a URI like this: whatsapp://send?text=Hello%2C%20World!. You can simply open it by calling to the Device.OpenUri method of Xamarin.Forms. This should work cross-platform for iOS and Android.
If you want to share a photo immediately this isn't possible as far as I know. It is possible to someone that is in your recent chats, by the sharing API, but to my knowledge you can't send it to a random number. At least not for iOS, it might be different for Android.

Firebase URL Format

I am adopting firebase in my unity game. Image is uploaded then an URL is got by GetDownloadUrlAsync().
The format of URL is something like this:
https://firebasestorage.googleapis.com/v0/b/""ProjectName"".appspot.com/o/""imageName""?alt=media&token=""token Generated by Firebase""
Does anyone know if this is the standard format of this URL?
I am now going to extract the token number out for further processing. My idea is to split the above string by "=".
While I don't think the URL format has changed since the initial release of Firebase Storage in May 2016, it is strictly speaking not a public API. To prevent problems in the future, you should treat the URL as an opaque string.
Out of curiosity: what are you trying to accomplish with the parsing?
Instead of adopting the URL inside unity, i want unity passes the info to another website by html GET. The website then knows the image location and show it. As a result, i can add other functions on the web page such as "share photo" button in social media.
Don't know if there is better way to achieve it :)

How to share only an image via Linkedin API

Using Linkedin via Buffer, I can share content with only an attached image. ie no accompanying comment, url, or any text. It is also possible via the web interface.
However, when using their share API, you are forced to include a URL and it displays with the content. Buffer must be using the API in some way, so how do you get around this?
I have been looking for the same solution.
How to get large LinkedIn Image Share Format
basically you just pass the image url in submitted-url field and don't pass submitted-image-url paramter in the json.
I was unable to find a this solution in google and in stackoverflow. I hope this help someone in the future.

Resources