I want to send advertisements to the application users using Push notification but i don't know is it possible or not.Can anyone help me to solve this issue.
If you want to send advertisements to your users, I would suggest iAd, theres a nifty tool called iAd Producer.
Another way to deliver other content besides iAds would be to use a UIWebView and create your own web based content that you can present as a modal view, or however else you would like.
Related
For some reasons we do not want to use the GKMatchmakerViewController. Currently we are offering the user of our App the possibility to invite their Game Center friends via a friends list displayed in our UI.
While this is still possible in iOS 10, the user will no longer have the possibility to add the GC friends. Therefore we want to use the new message-based invites introduced in iOS 10.
How can this be archived without using the GKMatchmakerViewController? I just want to display a button invite friends which opens the view to send message-based invites to anybody exactly as the button in the GKMatchmakerViewController does.
It is currently (iOS 10.2) not possible to display the iMessage view without the GKMatchmakerViewController.
In my app, I'm going to still provide fully custom views for the matchmaking. Only if a player on a device with iOS 10 wants to invite a friend, I'll display the GKMatchmakerViewController. This is not a great solution but currently, it seems like the most feasible workaround.
I'll also file an issue for that in Apple's bug reporter.
See GKGameSession. This class can send invite link. May be ios10 only
I am trying to write a simple chrome app to play a sequence of online pictures on my chromecast device.
I have looked at some examples, but could't find anything which I could tweak around to get the simple behavior i needed. Maybe someone here could help, by providing directions or advise on getting started with developing something like that for chromecast.
UPDATE:
To give you a better idea, about the specifics, let me add some more details to my requirements.
It needs to be controlled from chrome
I want to pass a playlist with 10s-100s of images so it can slide them in circles.
After receiving playlist chromecast device should be able to continue on its own, without continuously asking for next image.
This is actually similar to backdrop feature Google is planning to introduce, but I wanted to write something myself.
Thanks
If you don't want to develop your own Cast receiver, then you can use the media namespace channel and the Styled Media Receiver to display a photo at a time:
https://developers.google.com/cast/docs/styled_receiver
You will have to add the logic to advance from photo to photo in your sender app.
If you are willing to develop your own custom receiver, then you can start with this Cast sample app:
https://github.com/googlecast/CastHelloText-android
It allows you to send messages to a custom receiver. You can use that to send the URLs of the photos and then you can add JavaScript logic in the receiver to play a slideshow.
Just to let you know, I have tried various options and ended up writing custom receiver and Chrome sender applications. This was really straightforward and exactly what I wanted.
See the links above for guidance and also examples here.
I am using the Cast Companion Library and most of it is working well however I have not been able to figure out how to show the device chooser programmatically.
Basically when a user chooses a video on my app I would like to show the chooser if they haven't yet connected.
Thanks.
If you are using the MediaRouteButton and it's accessible:
mediaRouteButton.performClick();
you need to "Developing a custom UI with the MediaRouter API’s and MediaRouter.Callback" but I didn't find any example how to do it .
First, I suggest you do not do that. I don't know what you are planning to do in your app so I can't say much but don't do something custom in terms of user interaction/flow that is different from other apps and the apps offered by the framework; people will not expect that.
On the technical side, if you want to open the standard dialog, I am not aware of any trick but I haven't looked at the MediaRouter code in v7 support library for that; since that is open source, you are welcome to look in there and see if there is any simple way to do that. If you want to design your custom one, you should be able to do that; the CastCompanionLibrary provides a sample of the Callback dialog and the one for chooser follows a similar pattern.
As a side note, you mentioned you want to open the chooser when user selects a movie. So how can they select to play locally? Are you planning to add additional selection to that dialog for local playback?
Is there a way to get an app to receive the remote push notification while it is in the background?
I don't want to see the regular (close,view ) notification on my device. i want to go silently into the app - and the app will do it's magic from their...showing it's own AlertView (with custom buttons, and playing the alert sound (even when the device is on mute)
Is that possible?? How can i convince apple to support such scenario?
Update: What about in iOS 5.0? is there going to be a change regarding the push notification mechanism now that it uses the notification center?
Sorry, you probably out of luck. The only idea I have is that you can try to push notifications that only set different badge number (without view and sound) and when you are inside you app download rest of the data. However, I'm not sure how good this idea is.
I need to create a J2ME client reads from a WAP site (the WAP site is powered by wall). So I want to something like a "frame" or "skeleton" that confines a wap site in a J2ME client. Is this possible? If yes, what is the easiest way to do it?
Have a look at LWUIT. I think you may be able to display HTML Here. Other than that i dont think its possible, except writing your own html/wap parser.